Skip to content

Commit

Permalink
Update @octokit/plugin-throttling usage.
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <anders@zulip.com>
  • Loading branch information
andersk committed Feb 7, 2024
1 parent 9f45af4 commit eacb4d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ const client = new MyOctokit({
} times for ${method} ${url}; aborting`,
);
},
onAbuseLimit: (retryAfter, { method, url }) => {
client.log.warn(`Abuse detected for ${method} ${url}; aborting`);
onSecondaryRateLimit: (retryAfter, { method, url }) => {
client.log.warn(
`Secondary rate limit detected for ${method} ${url}; aborting`,
);
},
},
});
Expand Down

0 comments on commit eacb4d5

Please sign in to comment.