mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
sweepbatcher: use WithoutCancel for notifications
This commit is contained in:
parent
bb837a4aec
commit
a4a2bfbee3
1 changed files with 7 additions and 1 deletions
|
|
@ -1887,7 +1887,13 @@ func (b *batch) handleSpend(ctx context.Context, spendTx *wire.MsgTx) error {
|
|||
|
||||
// Dispatch the sweep notifier, we don't care about the outcome
|
||||
// of this action so we don't wait for it.
|
||||
go sweep.notifySweepSpend(ctx, &spendDetail)
|
||||
go func() {
|
||||
// Make sure this context doesn't expire so we
|
||||
// successfully notify the caller.
|
||||
ctx := context.WithoutCancel(ctx)
|
||||
|
||||
sweep.notifySweepSpend(ctx, &spendDetail)
|
||||
}()
|
||||
}
|
||||
|
||||
// Proceed with purging the sweeps. This will feed the sweeps that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue