From bab08bf7240e5b93c720857d33bffc499e796523 Mon Sep 17 00:00:00 2001 From: Francesco Casula Date: Wed, 30 Oct 2024 08:21:25 +0100 Subject: [PATCH] chore: gcra with burst --- cmd/producer/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/producer/main.go b/cmd/producer/main.go index 608e811..a0fd1db 100644 --- a/cmd/producer/main.go +++ b/cmd/producer/main.go @@ -173,7 +173,7 @@ func run(ctx context.Context) int { } // Creating throttler - throttler, err := throttling.New(throttling.WithInMemoryGCRA(0)) + throttler, err := throttling.New(throttling.WithInMemoryGCRA(int64(maxEventsPerSecond))) if err != nil { printErr(fmt.Errorf("cannot create throttler: %v", err)) return 1