aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 19:08:50 +0200
committerRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 19:08:50 +0200
commitde1f0b86f6636ae7c8b59edf0570cd5ee37ebc63 (patch)
treedcb4e2ebcfa7af7027950a14d313cdac4c7f42f7
parent85634669f40d81779457cbebe6fe46ec777b7fbb (diff)
Cancel generator metrics asap
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
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):