Skip to content

Commit 662acba

Browse files
authored
Merge pull request #30 from gofri/gofri/fix_lint
fix: linting
2 parents c093f12 + 7d44921 commit 662acba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

github_ratelimit/ratelimit.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ func (t *SecondaryRateLimitWaiter) waitForRateLimit(ctx context.Context) {
9191
sleepDuration := t.currentSleepDurationUnlocked()
9292
t.lock.RUnlock()
9393

94-
sleepWithContext(ctx, sleepDuration)
94+
// ignore "cancelled" error because it is expected
95+
_ = sleepWithContext(ctx, sleepDuration)
9596
}
9697

9798
// updateRateLimit updates the active rate limit and triggers user callbacks if needed.

0 commit comments

Comments
 (0)