Fix github auth again (#2736)
This code isn't being run during tests, though let's fix that later as part of #2733. Specifically: > However _the pool itself_ could be used all the time; there's not a big advantage in turning that off when it doesn't need to be used. Fix #2728
This commit is contained in:
@@ -81,7 +81,7 @@ class GithubApiProvider {
|
||||
return
|
||||
}
|
||||
|
||||
const reserve = this.reserveFraction * rateLimit
|
||||
const reserve = Math.ceil(this.reserveFraction * rateLimit)
|
||||
const usesRemaining = totalUsesRemaining - reserve
|
||||
|
||||
token.update(usesRemaining, nextReset)
|
||||
|
||||
Reference in New Issue
Block a user