Skip to content

Commit

Permalink
Fix annoying compiler warning (#1704)
Browse files Browse the repository at this point in the history
This fixes the `multiarg infix syntax looks like a tuple and will
be deprecated` warning.
  • Loading branch information
pm47 authored Feb 24, 2021
1 parent c1bf9bd commit d02b900
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions eclair-core/src/main/scala/fr/acinq/eclair/channel/Channel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
handleCommandSuccess(c, d.copy(commitments = commitments1)) sending fulfill
case Left(cause) =>
// we acknowledge the command right away in case of failure
handleCommandError(cause, c) acking(d.channelId, c)
handleCommandError(cause, c).acking(d.channelId, c)
}

case Event(fulfill: UpdateFulfillHtlc, d: DATA_NORMAL) =>
Expand All @@ -702,7 +702,7 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
handleCommandSuccess(c, d.copy(commitments = commitments1)) sending fail
case Left(cause) =>
// we acknowledge the command right away in case of failure
handleCommandError(cause, c) acking(d.channelId, c)
handleCommandError(cause, c).acking(d.channelId, c)
}

case Event(c: CMD_FAIL_MALFORMED_HTLC, d: DATA_NORMAL) =>
Expand All @@ -713,7 +713,7 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
handleCommandSuccess(c, d.copy(commitments = commitments1)) sending fail
case Left(cause) =>
// we acknowledge the command right away in case of failure
handleCommandError(cause, c) acking(d.channelId, c)
handleCommandError(cause, c).acking(d.channelId, c)
}

case Event(fail: UpdateFailHtlc, d: DATA_NORMAL) =>
Expand Down Expand Up @@ -1034,7 +1034,7 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
handleCommandSuccess(c, d.copy(commitments = commitments1)) sending fulfill
case Left(cause) =>
// we acknowledge the command right away in case of failure
handleCommandError(cause, c) acking(d.channelId, c)
handleCommandError(cause, c).acking(d.channelId, c)
}

case Event(fulfill: UpdateFulfillHtlc, d: DATA_SHUTDOWN) =>
Expand All @@ -1053,7 +1053,7 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
handleCommandSuccess(c, d.copy(commitments = commitments1)) sending fail
case Left(cause) =>
// we acknowledge the command right away in case of failure
handleCommandError(cause, c) acking(d.channelId, c)
handleCommandError(cause, c).acking(d.channelId, c)
}

case Event(c: CMD_FAIL_MALFORMED_HTLC, d: DATA_SHUTDOWN) =>
Expand All @@ -1063,7 +1063,7 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
handleCommandSuccess(c, d.copy(commitments = commitments1)) sending fail
case Left(cause) =>
// we acknowledge the command right away in case of failure
handleCommandError(cause, c) acking(d.channelId, c)
handleCommandError(cause, c).acking(d.channelId, c)
}

case Event(fail: UpdateFailHtlc, d: DATA_SHUTDOWN) =>
Expand Down

0 comments on commit d02b900

Please sign in to comment.