Skip to content

Commit c254206

Browse files
committed
tmp fix
1 parent 1104e92 commit c254206

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

staticaddr/deposit/manager.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,11 @@ func (m *Manager) recoverDeposits(ctx context.Context) error {
193193
// Send the OnRecover event to the state machine.
194194
// TODO(hieblmi): Add a unit test that would fail with the
195195
// dead-lock before the fsm was passed in.
196-
go func(fsm *FSM) {
197-
err := fsm.SendEvent(ctx, OnRecover, nil)
198-
if err != nil {
199-
log.Errorf("Error sending OnStart event: %v",
200-
err)
201-
}
202-
}(fsm)
196+
err = fsm.SendEvent(ctx, OnRecover, nil)
197+
if err != nil {
198+
log.Errorf("Error sending OnRecover event: %v",
199+
err)
200+
}
203201

204202
m.mu.Lock()
205203
m.activeDeposits[d.OutPoint] = fsm

0 commit comments

Comments
 (0)