mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-19 13:17:50 +02:00
deposit: fix sending to finalizedDepositChan
This commit is contained in:
parent
484681ab45
commit
e704119f14
1 changed files with 4 additions and 9 deletions
|
|
@ -147,12 +147,9 @@ func (f *FSM) SweptExpiredDepositAction(ctx context.Context,
|
|||
case <-ctx.Done():
|
||||
return fsm.OnError
|
||||
|
||||
default:
|
||||
f.finalizedDepositChan <- f.deposit.OutPoint
|
||||
ctx.Done()
|
||||
case f.finalizedDepositChan <- f.deposit.OutPoint:
|
||||
return fsm.NoOp
|
||||
}
|
||||
|
||||
return fsm.NoOp
|
||||
}
|
||||
|
||||
// FinalizeDepositAction is the final action after a withdrawal. It signals to
|
||||
|
|
@ -164,9 +161,7 @@ func (f *FSM) FinalizeDepositAction(ctx context.Context,
|
|||
case <-ctx.Done():
|
||||
return fsm.OnError
|
||||
|
||||
default:
|
||||
f.finalizedDepositChan <- f.deposit.OutPoint
|
||||
case f.finalizedDepositChan <- f.deposit.OutPoint:
|
||||
return fsm.NoOp
|
||||
}
|
||||
|
||||
return fsm.NoOp
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue