mirror of
https://github.com/chatmail/relay.git
synced 2026-09-28 10:10:09 +00:00
a6361a21941b18241f79f25bf4954c5cb7ed7fbe
There is a known bug that `quanta` clock used by default sometimes jumps back: <https://github.com/metrics-rs/quanta/issues/111>. This results in `governor` rate limiter incorrectly rejecting the messages even when less than the configured burst size has been sent. Switched to standard monotonic clock which does not have this problem. I tested that this fixed the problem for me, chatmail relay test `test_exceed_rate_limit` stopped failing randomly. Fixes <https://github.com/chatmail/filtermail/issues/166>
Languages
Python
85.5%
Jinja
10.4%
Filebench WML
1.3%
Shell
1.3%
Forth
0.4%
Other
1.1%