diff --git a/cmd/main.go b/cmd/main.go index 53675864..f62b3e62 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -275,8 +275,9 @@ func main() { logger.Error(err) } } - errors := waiter.WaitForAll(ctx) - for _, err := range errors { + timeoutCtx, cancel := context.WithTimeout(context.Background(), time.Second) + defer cancel() + for _, err := range waiter.WaitForAll(timeoutCtx) { logger.Error(err) } }