Skip to content

Commit

Permalink
warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
edvmorango committed Aug 16, 2024
1 parent d14f836 commit 76d767b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private[ssh] final class ByteArrayKeyPairProvider private (
NamedResource.ofName(BytesMagicKey),
bis,
maybePass match {
case Some(password) => { (session, key, _) =>
case Some(password) => { (_, key, _) =>
if (key.getName() === BytesMagicKey)
password
else
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/fs2/io/ssh/Client.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ final class Client[F[_]] private (client: SshClient)(implicit F: Async[F]) {
channel <- Resource.make(for {
channel <- F.delay(session.createExecChannel(command))
_ <- F.delay(channel.setStreaming(StreamingChannel.Streaming.Async))
opened <- fromFuture(F.delay(channel.open()))
_ <- fromFuture(F.delay(channel.open()))
// TODO handle failure opening
} yield channel)(channel =>
fromFuture(F.delay(channel.close(false))).void
Expand Down

0 comments on commit 76d767b

Please sign in to comment.