From 0fe54519ea14bb0663d62eba4ac7bb9531733f36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Jovanovi=C4=87?= Date: Thu, 24 Sep 2026 20:48:36 -0700 Subject: [PATCH] no bursts to avoid 429 and 30 sec waits --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 938e14d..23cb5e0 100644 --- a/client.go +++ b/client.go @@ -29,8 +29,8 @@ func NewClient(key string, dryRun bool) *Client { key: key, dryRun: dryRun, http: &http.Client{Timeout: 30 * time.Second}, - // 60 requests per 30 seconds: 2/sec sustained, burst of 60. - limiter: rate.NewLimiter(2, 60), + // limit to 2 requests per second, no bursts to avoid 429s + limiter: rate.NewLimiter(2, 1), } }