Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve handling of global rate-limit #2465

Merged
merged 1 commit into from
May 11, 2023
Merged

Conversation

MinnDevelopment
Copy link
Member

Pull Request Etiquette

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • Documentation
  • Other: _____

Closes Issue: NaN

Description

Slightly improves how we handle global rate-limit backoff. We were always prioritizing the global rate-limit, even when it's shorter than the bucket limit. With this change, we will always use whichever limit is greater.

I've also added implementations for hashCode and equals, to handle potential regressions with duplicated bucket instances.

@MinnDevelopment MinnDevelopment merged commit ad66a69 into master May 11, 2023
1 check passed
@MinnDevelopment MinnDevelopment deleted the patch/rate-limits branch May 11, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant