aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 569d9fe..784638d 100644
--- a/main.go
+++ b/main.go
@@ -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)