mirror of
https://github.com/chatmail/relay.git
synced 2026-10-11 16:34:14 +00:00
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>