Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the HTTP request rate limiter #577

Merged
merged 1 commit into from
Mar 26, 2021
Merged

Fix the HTTP request rate limiter #577

merged 1 commit into from
Mar 26, 2021

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Mar 26, 2021

The rate limiter was initialized with a maximum of 1 request per second with a
burst size of RateLimitPerSecond. Because we only use the limiter.Wait()
API, we can fix the burst at 1.

The rate limiter was initialized with a maximum of 1 request per second with a
burst size of `RateLimitPerSecond`. Because we only use the `limiter.Wait()`
API, we can fix the burst at 1.
@pietern pietern requested a review from nfx March 26, 2021 09:30
@codecov
Copy link

codecov bot commented Mar 26, 2021

Codecov Report

Merging #577 (4a7475b) into master (5a804bb) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #577   +/-   ##
=======================================
  Coverage   81.65%   81.65%           
=======================================
  Files          77       77           
  Lines        6678     6678           
=======================================
  Hits         5453     5453           
  Misses        815      815           
  Partials      410      410           
Impacted Files Coverage Δ
common/client.go 82.67% <100.00%> (ø)

@nfx nfx merged commit 6669a94 into master Mar 26, 2021
@nfx nfx deleted the fix-rate-limiter branch March 26, 2021 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants