diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-04-02 19:08:50 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-04-02 19:08:50 +0200 |
commit | de1f0b86f6636ae7c8b59edf0570cd5ee37ebc63 (patch) | |
tree | dcb4e2ebcfa7af7027950a14d313cdac4c7f42f7 | |
parent | 85634669f40d81779457cbebe6fe46ec777b7fbb (diff) |
Cancel generator metrics asap
-rw-r--r-- | main.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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): |