Skip to content

Commit

Permalink
fix: increase fallbackSecondaryRateRetryAfter to new default value of 60
Browse files Browse the repository at this point in the history
The secondary rate limit default value in `@octokit/plugin-throttling` was increased to 60 in version 5. However, because we are still using an older version, we manually set the option here. Hopefully fixes intuit#2458.
  • Loading branch information
restfulhead committed May 10, 2024
1 parent 335fadb commit 911266c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export default class Git {
previews: ["symmetra-preview"],
request: { agent: this.options.agent },
throttle: {
fallbackSecondaryRateRetryAfter: 60,
/** Add a wait once rate limit is hit */
onRateLimit: (retryAfter: number, opts: ThrottleOpts) => {
this.logger.log.warn(
Expand Down

0 comments on commit 911266c

Please sign in to comment.