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

feat: implement rate limiters #6

Merged
merged 3 commits into from
Jun 20, 2024
Merged

feat: implement rate limiters #6

merged 3 commits into from
Jun 20, 2024

Conversation

beihai0xff
Copy link
Owner

implement Rate Limiters, such as BucketRateLimiter、 ItemExponentialFailureRateLimiter and so on.
also use ItemExponentialFailureRateLimiter on tddl renew method.

implement Rate Limiters, such as BucketRateLimiter、 ItemExponentialFailureRateLimiter and so on.
also use backoff retry logic on tddl renew method.
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 92.63158% with 7 lines in your changes missing coverage. Please review.

Project coverage is 56.29%. Comparing base (1bc3c1c) to head (003af0e).

Current head 003af0e differs from pull request most recent head ecdcb4c

Please upload reports for the commit ecdcb4c to get more accurate results.

Files Patch % Lines
pkg/workqueue/rate_limiters.go 90.27% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
+ Coverage   46.62%   56.29%   +9.67%     
==========================================
  Files          17       18       +1     
  Lines         326      405      +79     
==========================================
+ Hits          152      228      +76     
- Misses        167      171       +4     
+ Partials        7        6       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@beihai0xff beihai0xff merged commit 7197835 into main Jun 20, 2024
5 checks passed
@beihai0xff beihai0xff deleted the feat/rate_limit branch June 20, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants