Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
milankomaj committed Aug 2, 2024
1 parent ec95664 commit 84037cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ThrottleOctokit = Octokit.plugin(throttling, retry, paginateGraphQL);
const octokit = new ThrottleOctokit({
userAgent: 'stat-card',
auth: token,
retry: { request: { retries: 1, retryAfter: 10, } },
retry: { request: { retries: 10, retryAfter: 10, } },
log: {
debug: logs === 'debug' ? console.debug : () => { }, // () => { }🔶
info: logs === 'info' ? console.info : () => { },
Expand Down Expand Up @@ -311,7 +311,7 @@ class GithubUser {
});

if (response.status === 202) {
const retryAfter = parseInt(response.headers["Retry-After"], 10) || 0; // Handle missing or invalid headers
const retryAfter = parseInt(response.headers["Retry-After"], 10) || 10; // Handle missing or invalid headers
octokit.log.info(
`${util.color.blue(response.status)} ` +
`${util.color.green(repo)} ` +
Expand Down

0 comments on commit 84037cc

Please sign in to comment.