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:
Paul Melnikow
2019-01-11 13:50:29 -05:00
committed by GitHub
parent 269fbd056c
commit eb7ea8499d
2 changed files with 7 additions and 6 deletions

View File

@@ -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)