Skip to content

Commit

Permalink
doc comment for BypassRateLimitCheck (context key)
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Dec 16, 2024
1 parent edb51b3 commit 9b253b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,11 @@ func parseTokenExpiration(r *http.Response) Timestamp {
type requestContext uint8

const (
// BypassRateLimitCheck prevents a pre-emptive check for exceeded primary rate limits
// Specify this by providing a context with this key, e.g.
// context.WithValue(context.Background(), github.BypassRateLimitCheck, true)
BypassRateLimitCheck requestContext = iota

SleepUntilPrimaryRateLimitResetWhenRateLimited
)

Expand Down

0 comments on commit 9b253b9

Please sign in to comment.