Skip to content

Commit d6055c3

Browse files
committed
defer ticker stop
Signed-off-by: fahed dorgaa <[email protected]>
1 parent f216b05 commit d6055c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/logging/logging.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ func getContainerWait(ctx context.Context, hostAddress string, config *logging.C
177177
// If task was not found, it's possible that the container runtime is still being created.
178178
// Retry every 100ms.
179179
ticker := time.NewTicker(100 * time.Millisecond)
180+
defer ticker.Stop()
180181
for {
181182
select {
182183
case <-ctx.Done():

0 commit comments

Comments
 (0)