We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8285bc7 commit be19c57Copy full SHA for be19c57
staticaddr/loopin/manager.go
@@ -473,16 +473,15 @@ func (m *Manager) recoverLoopIns(ctx context.Context) error {
473
}
474
475
// Send the OnRecover event to the state machine.
476
- swapHash := loopIn.SwapHash
477
- go func() {
478
- err = fsm.SendEvent(ctx, OnRecover, nil)
+ go func(fsm *FSM, swapHash lntypes.Hash) {
+ err := fsm.SendEvent(ctx, OnRecover, nil)
479
if err != nil {
480
log.Errorf("Error sending OnStart event: %v",
481
err)
482
483
484
m.activeLoopIns[swapHash] = fsm
485
- }()
+ }(fsm, loopIn.SwapHash)
486
487
488
return nil
0 commit comments