From de1f0b86f6636ae7c8b59edf0570cd5ee37ebc63 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sun, 2 Apr 2023 19:08:50 +0200 Subject: Cancel generator metrics asap --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index a953fa6..5972132 100644 --- a/main.go +++ b/main.go @@ -209,6 +209,7 @@ func workGenerator(ctx context.Context, opts options.Options, fp *os.File, quest } } + cancel() select { case <-ctx.Done(): case <-time.After(opts.Timeout + time.Second): -- cgit v1.2.3