-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly meter calls to Github API. Remove retrier.
We do this because the Github API triggers abuse warnings if a single user makes lots of concurrent requests. By having a shared ticker, we ensure that Github API requests don't happen in parallel. Moreover, we also ensure that there's a global rate limit of 1 request to the GithubAPI per 720 milliseconds. We're following the approach shown here: google/go-github#431 This means that we'll stay within the rate limit requirement of 5000 requests-per-hour for authenticated users. ``` 5000 QPH = 83.3 QPM = 1.38 QPS = 720ms/query ```
- Loading branch information
1 parent
f022324
commit bacb88c
Showing
5 changed files
with
36 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters