mirror of
https://github.com/chatmail/relay.git
synced 2026-09-21 06:40:09 +00:00
fix: switch ratelimiter to MonotonicClock (#167)
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>
This commit is contained in:
@@ -19,7 +19,10 @@ mailparse = "0.16.1"
|
||||
memchr = "2.8.0"
|
||||
log = "0.4.29"
|
||||
env_logger = "0.11.10"
|
||||
governor = "0.10.4"
|
||||
governor = { version = "0.10.4", default-features = false, features = [
|
||||
"std",
|
||||
"dashmap",
|
||||
] }
|
||||
viadkim = { version = "0.2.0" }
|
||||
hickory-resolver = { version = "0.26.1", features = ["dnssec-ring"] }
|
||||
lru = "0.17.0"
|
||||
|
||||
Reference in New Issue
Block a user