Closed tanveergill closed 11 months ago
The codebase has been updated to replace the deprecated GetLabelKey
method with the new GetLimitByLabelKey
method in the RateLimiter
interface. The quotaScheduler
and rateLimiter
types now use the new method for retrieving label keys. If the new method returns an empty string, a deprecation warning is logged, and the old method is used as a fallback.
File Path | Change Summary |
---|---|
.../quota-scheduler/quota-scheduler.go |
Updated getLabelKey to use GetLimitByLabelKey with a fallback to deprecated GetLabelKey . |
.../rate-limiter/rate-limiter.go |
Replaced GetLabelKey with GetLimitByLabelKey in TakeIfAvailable method and lbProto.Parameters . |
🐇✨ In the land of code, where the rabbits hop, We've changed our keys, from bottom to top. No more old ways, as we dance in the light, With
GetLimitByLabelKey
, our code takes flight! 🚀🌟
Description of change
Checklist
Summary by CodeRabbit
GetLabelKey
method in rate limiting scenarios.