-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Problem Description
In your InMemoryBucket you seem to sort the rates in the wrong order, no?
| self.rates = sorted(rates, key=lambda r: r.interval) |
This means when I configure that I have a rates
[pyrate_limiter.Rate(3, pyrate_limiter.Duration.MINUTE), pyrate_limiter.Rate(1, pyrate_limiter.Duration.DAY)]then always the minutes are checked first. So shouldn't the order when you sort the list of rates be reversed?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels