We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c093f12 + 7d44921 commit 662acbaCopy full SHA for 662acba
github_ratelimit/ratelimit.go
@@ -91,7 +91,8 @@ func (t *SecondaryRateLimitWaiter) waitForRateLimit(ctx context.Context) {
91
sleepDuration := t.currentSleepDurationUnlocked()
92
t.lock.RUnlock()
93
94
- sleepWithContext(ctx, sleepDuration)
+ // ignore "cancelled" error because it is expected
95
+ _ = sleepWithContext(ctx, sleepDuration)
96
}
97
98
// updateRateLimit updates the active rate limit and triggers user callbacks if needed.
0 commit comments