diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-04-01 10:41:01 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-04-01 10:41:01 +0200 |
commit | f0559b88ac60a444483d87a849703c42d77cad6e (patch) | |
tree | 06df8df4329bd58c153b7171cf1663fb7369e63c | |
parent | 2b210874607d7c9690650fb60d90262a83484890 (diff) |
Rename await
-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) |