Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
milankomaj authored Aug 2, 2024
1 parent e480779 commit 14bc198
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const octokit = new ThrottleOctokit({
error: console.error,
},
throttle: {
onSecondaryRateLimit: (retryAfter, options, octokit) => { return true },
onRateLimit: (retryAfter, options, octokit, retryCount) => { if (options.request.retryCount < 10) { return true } },
onSecondaryRateLimit: (retryAfter, options, octokit) => { return true; },
onRateLimit: (retryAfter, options, octokit, retryCount) => { if (options.request.retryCount < 10) { return true; } },
},
})

Expand Down Expand Up @@ -316,7 +316,7 @@ class GithubUser {
`${util.color.blue(response.status)} ` +
`${util.color.green(repo)} ` +
`(${util.color.blue("retry")} ${util.color.yellow((retryCount) + 1)}) ` +
`${util.color.green(retryAfter) + "s"} `
`${util.color.green(retryAfter) + " s"} `
);
await new Promise((resolve) => setTimeout(resolve, retryAfter * 1000));
retryCount++;
Expand Down

0 comments on commit 14bc198

Please sign in to comment.