Skip to content

Conversation

@Suhaibinator
Copy link
Owner

Summary

  • implement size limited LRU cache in UberRateLimiter
  • expose NewUberRateLimiterWithMax
  • update rate limiter docs with new memory info
  • add README note about limiter cache
  • test limiter eviction and adapt existing tests

Testing

  • go vet ./...
  • go test ./...

https://chatgpt.com/codex/tasks/task_e_684387b16dfc8331ac352b0b37ac823b

@codecov
Copy link

codecov bot commented Jun 7, 2025

Codecov Report

Attention: Patch coverage is 89.28571% with 3 lines in your changes missing coverage. Please review.

Project coverage is 97.07%. Comparing base (878a259) to head (4f0aba1).

Files with missing lines Patch % Lines
pkg/middleware/ratelimit.go 89.28% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #84      +/-   ##
==========================================
- Coverage   97.18%   97.07%   -0.11%     
==========================================
  Files          18       18              
  Lines        2378     2394      +16     
==========================================
+ Hits         2311     2324      +13     
- Misses         55       57       +2     
- Partials       12       13       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants