Skip to content

Commit 459717e

Browse files
committed
fixup! improved timekeeping
1 parent d211695 commit 459717e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/util/util.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func WaitFor(ctx context.Context, timeout WaitTimeout, condition func() (bool, e
5151
interval := minInterval
5252
if timeout.InitialWait {
5353
initialTimer := clock.NewTimer(interval)
54+
defer initialTimer.Stop()
5455
select {
5556
case <-initialTimer.C:
5657
case <-ctx.Done():

0 commit comments

Comments
 (0)