mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
<!-- Describe what has changed in this PR --> Always set the RPS of the dynamic rate limiter when it is refreshed <!-- Tell your future self why have you made these changes --> Previously it would only apply changes made to `rateFn` when the dynamic multiplier should be adjusted. The rate function should always be checked to pick up any changes to the maximum RPS dynamic config. <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> Existing tests <!-- Assuming the worst case, what can be broken when deploying this change to production? --> Extra rate limiting <!-- Is this PR a hotfix candidate or does it require a notification to be sent to the broader community? (Yes/No) -->