Skip to content

Commit

Permalink
Fix PaymentLifecycle warning (#1703)
Browse files Browse the repository at this point in the history
Type is erased at runtime, but it's not needed, so let's simply remove it.
  • Loading branch information
t-bast committed Feb 23, 2021
1 parent 5163749 commit fa759f1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -93,7 +93,7 @@ class PaymentLifecycle(nodeParams: NodeParams, cfg: SendPaymentConfig, router: A
case Event(RES_ADD_FAILED(_, t: ChannelException, _), d: WaitingForComplete) =>
handleLocalFail(d, t, isFatal = false)

case Event(_: Register.ForwardShortIdFailure[CMD_ADD_HTLC], d: WaitingForComplete) =>
case Event(_: Register.ForwardShortIdFailure[_], d: WaitingForComplete) =>
handleLocalFail(d, DisconnectedException, isFatal = false)

case Event(RES_ADD_SETTLED(_, htlc, fulfill: HtlcResult.Fulfill), d: WaitingForComplete) =>
Expand Down

0 comments on commit fa759f1

Please sign in to comment.