mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-15 12:50:28 +02:00
staticaddr: log deposit state transition only if executed
This commit is contained in:
parent
82e34a6d5e
commit
ff44b3b640
1 changed files with 5 additions and 5 deletions
|
|
@ -378,11 +378,6 @@ func (f *FSM) updateDeposit(ctx context.Context,
|
|||
return
|
||||
}
|
||||
|
||||
f.Debugf("NextState: %v, PreviousState: %v, Event: %v",
|
||||
notification.NextState, notification.PreviousState,
|
||||
notification.Event,
|
||||
)
|
||||
|
||||
type checkStateFunc func(state fsm.StateType) bool
|
||||
type setStateFunc func(state fsm.StateType)
|
||||
checkFunc := checkStateFunc(f.deposit.IsInState)
|
||||
|
|
@ -397,6 +392,11 @@ func (f *FSM) updateDeposit(ctx context.Context,
|
|||
return
|
||||
}
|
||||
|
||||
f.Debugf("NextState: %v, PreviousState: %v, Event: %v",
|
||||
notification.NextState, notification.PreviousState,
|
||||
notification.Event,
|
||||
)
|
||||
|
||||
err := f.cfg.Store.UpdateDeposit(ctx, f.deposit)
|
||||
if err != nil {
|
||||
f.Errorf("unable to update deposit: %w", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue