Fix rate limit.

This commit is contained in:
Dan Lorenc 2020-10-13 14:43:12 -05:00
parent 49eeef3260
commit bdb1aba90e
2 changed files with 2 additions and 5 deletions

View File

@ -6,10 +6,7 @@ import (
)
func init() {
AllChecks = append(AllChecks, checker.NamedCheck{
Name: "PullRequests",
Fn: PullRequests,
})
registerCheck("PullRequests", PullRequests)
}
func PullRequests(c checker.Checker) checker.CheckResult {

View File

@ -73,7 +73,7 @@ func (gh *RateLimitRoundTripper) RoundTrip(r *http.Request) (*http.Response, err
}
duration := time.Until(time.Unix(int64(reset), 0))
gh.Logger.Debugf("Rate limit exceeded. Waiting %s to retry...", duration)
gh.Logger.Warnf("Rate limit exceeded. Waiting %s to retry...", duration)
// Retry
time.Sleep(duration)