Skip to content

Conversation

ackintosh
Copy link
Member

@ackintosh ackintosh commented Feb 21, 2025

Issue Addressed

#6875

Proposed Changes

  • Enabled the linter in rate-limiter and fixed errors.
  • Changed the type of Quota::max_tokens from u64 to NonZeroU64 because max_tokens cannot be zero.
  • Added a test to ensure that a large value for tokens, which causes an overflow, is handled properly.

@ackintosh ackintosh added the work-in-progress PR is a work-in-progress label Feb 21, 2025
@ackintosh ackintosh marked this pull request as ready for review February 24, 2025 23:00
@ackintosh ackintosh requested a review from jxs as a code owner February 24, 2025 23:00
@ackintosh ackintosh added ready-for-review The code is ready for review Networking and removed work-in-progress PR is a work-in-progress labels Feb 24, 2025
@jimmygchen jimmygchen added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels May 22, 2025
@jimmygchen
Copy link
Member

@ackintosh ready to review this one - would you mind resolving the conflicts please?

Copy link

mergify bot commented May 23, 2025

All required checks have passed and there are no merge conflicts. This pull request may now be ready for another review.

@mergify mergify bot added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels May 23, 2025
@ackintosh
Copy link
Member Author

@jimmygchen Thanks! I've resolved the conflicts and updated the PR.

@jimmygchen jimmygchen self-requested a review May 26, 2025 12:17
Copy link
Member

@jimmygchen jimmygchen left a comment

Choose a reason for hiding this comment

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

Nice, thanks for adding the tests and the explanation!

@jimmygchen jimmygchen added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels May 27, 2025
mergify bot added a commit that referenced this pull request May 27, 2025
@mergify mergify bot merged commit 8989ef8 into sigp:unstable May 27, 2025
31 checks passed
@ackintosh ackintosh deleted the arithmetic-lint-in-rate-limiter branch May 29, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Networking ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants