diff options
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -59,7 +59,7 @@ func main() { go func() { wg.Add(1) defer wg.Done() - await(ctx, cancel) + awaitHandler(ctx, cancel) }() log.Printf("INFO: starting %d workers with rate-limit %d requests/s\n", opts.NumWorkers, opts.Limit) @@ -89,7 +89,7 @@ func main() { } } -func await(ctx context.Context, cancel context.CancelFunc) { +func awaitHandler(ctx context.Context, cancel context.CancelFunc) { sigs := make(chan os.Signal, 1) defer close(sigs) |