mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
sweepbatcher: fix code format
This commit is contained in:
parent
16d56f1274
commit
d82b3624b9
2 changed files with 4 additions and 3 deletions
|
|
@ -2439,6 +2439,7 @@ func (b *batch) isComplete() bool {
|
|||
if err != nil && err != ErrBatchShuttingDown {
|
||||
return false
|
||||
}
|
||||
|
||||
return b.state == Confirmed
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4149,9 +4149,9 @@ func testSweepBatcherHandleSweepRace(t *testing.T, store testStore,
|
|||
go func() {
|
||||
defer addWG.Done()
|
||||
|
||||
// After this goroutine completes, stop the goroutine that handles
|
||||
// registrations as well. Give it one second to finish the last
|
||||
// AddSweep to prevent goroutine leaks.
|
||||
// After this goroutine completes, stop the goroutine that
|
||||
// handles registrations as well. Give it one second to finish
|
||||
// the last AddSweep to prevent goroutine leaks.
|
||||
defer time.AfterFunc(time.Second, confCancel)
|
||||
|
||||
for {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue