From 4e6d901649d7ac3c988870f7b975d81f02e10f57 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 18 Mar 2022 11:26:16 -0400 Subject: [PATCH] Show rate limit algorithm. Fixes #2136 --- crates/utils/src/rate_limit/rate_limiter.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/utils/src/rate_limit/rate_limiter.rs b/crates/utils/src/rate_limit/rate_limiter.rs index 75b7808d..de5557ea 100644 --- a/crates/utils/src/rate_limit/rate_limiter.rs +++ b/crates/utils/src/rate_limit/rate_limiter.rs @@ -45,6 +45,7 @@ impl RateLimiter { } } + /// Rate limiting Algorithm described here: https://stackoverflow.com/a/668327/1655478 #[allow(clippy::float_cmp)] pub(super) fn check_rate_limit_full( &mut self, -- 2.44.1