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 1104e92 commit c254206Copy full SHA for c254206
staticaddr/deposit/manager.go
@@ -193,13 +193,11 @@ func (m *Manager) recoverDeposits(ctx context.Context) error {
193
// Send the OnRecover event to the state machine.
194
// TODO(hieblmi): Add a unit test that would fail with the
195
// 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)
+ err = fsm.SendEvent(ctx, OnRecover, nil)
+ if err != nil {
+ log.Errorf("Error sending OnRecover event: %v",
+ err)
+ }
203
204
m.mu.Lock()
205
m.activeDeposits[d.OutPoint] = fsm
0 commit comments