sweepbatcher: fix code format

This commit is contained in:
Boris Nagaev 2025-11-11 23:36:03 -03:00
parent 16d56f1274
commit d82b3624b9
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View file

@ -2439,6 +2439,7 @@ func (b *batch) isComplete() bool {
if err != nil && err != ErrBatchShuttingDown {
return false
}
return b.state == Confirmed
}

View file

@ -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 {