Commit 29c25fb
authored
Rate limits cleanup (#19990)
* use monotonic clock in rate limiter
* rename minute -> slot in rate limiter, as the length is a parameter
* mock timer in rate limit test to make them deterministic
* remove unnecessary pytest class
* improve comment in rate_limit_numbers
* fix minor typos in rate_limits.py
* replace test_too_many_messages() with a parametrized test for (almost) all rate-limit cases
* review comments: give better names to test parameters
* review comments
* review comments
* review comments
* review comments1 parent 061d588 commit 29c25fb
File tree
3 files changed
+444
-343
lines changed- chia
- _tests/core/server
- server
3 files changed
+444
-343
lines changed
0 commit comments