We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c3124 commit eb81d96Copy full SHA for eb81d96
github/github.go
@@ -649,7 +649,7 @@ type RateLimitError struct {
649
func (r *RateLimitError) Error() string {
650
return fmt.Sprintf("%v %v: %d %v %v",
651
r.Response.Request.Method, sanitizeURL(r.Response.Request.URL),
652
- r.Response.StatusCode, r.Message, formatRateReset(r.Rate.Reset.Time.Sub(time.Now())))
+ r.Response.StatusCode, r.Message, formatRateReset(time.Until(r.Rate.Reset.Time)))
653
}
654
655
// AcceptedError occurs when GitHub returns 202 Accepted response with an
0 commit comments