aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-04-01 10:41:01 +0200
committerRasmus Dahlberg <rasmus@rgdd.se>2023-04-01 10:41:01 +0200
commitf0559b88ac60a444483d87a849703c42d77cad6e (patch)
tree06df8df4329bd58c153b7171cf1663fb7369e63c
parent2b210874607d7c9690650fb60d90262a83484890 (diff)
Rename await
-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)