Skip to content

Conversation

@jyasskin
Copy link
Contributor

@jyasskin jyasskin commented Oct 24, 2023

Addresses #599, although it won't handle the case where the client and server actually have different times.

@jyasskin jyasskin changed the title Retry requests after the x-ratelimit-reset time, not exactly at it. fix(retry): Retry requests after the x-ratelimit-reset time, not exactly at it. Oct 24, 2023
@gr2m gr2m added the Type: Bug Something isn't working as documented label Oct 24, 2023
Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix looks good, can you update the tests accordingly?

@jyasskin
Copy link
Contributor Author

I've adjusted the one test I found that seems to exercise this timing.

Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great pull request, thank you 💐

@gr2m gr2m merged commit 39c0080 into octokit:main Oct 25, 2023
@github-actions
Copy link
Contributor

🎉 This PR is included in version 8.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@jyasskin jyasskin deleted the retry-after-reset branch October 25, 2023 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Type: Bug Something isn't working as documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants