mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
Merge pull request #908 from hieblmi/non-blocking-depo-recovery
staticaddr: non-concurrent deposit recovery
This commit is contained in:
commit
3845bded2a
1 changed files with 4 additions and 7 deletions
|
|
@ -196,13 +196,10 @@ func (m *Manager) recoverDeposits(ctx context.Context) error {
|
|||
}
|
||||
|
||||
// Send the OnRecover event to the state machine.
|
||||
go func() {
|
||||
err = fsm.SendEvent(ctx, OnRecover, nil)
|
||||
if err != nil {
|
||||
log.Errorf("Error sending OnStart event: %v",
|
||||
err)
|
||||
}
|
||||
}()
|
||||
err = fsm.SendEvent(ctx, OnRecover, nil)
|
||||
if err != nil {
|
||||
log.Errorf("Error sending OnStart event: %v", err)
|
||||
}
|
||||
|
||||
m.mu.Lock()
|
||||
m.activeDeposits[d.OutPoint] = fsm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue