From 916a774c88bb33905abe6e73a15382b4cbd6adff Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Mon, 15 Feb 2021 22:44:19 +0300 Subject: [PATCH] Update src/adaptors/throttle.rs Co-authored-by: Waffle Lapkin --- src/adaptors/throttle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adaptors/throttle.rs b/src/adaptors/throttle.rs index 6aca69d5..789eda62 100644 --- a/src/adaptors/throttle.rs +++ b/src/adaptors/throttle.rs @@ -52,7 +52,7 @@ use crate::{ // // 4. Clear the history from records whose time < (current time - minute). // -// 5. Count all requests which were sent last second, `allowed = limit.overall_s +// 5. Count all requests which were sent last second, `allowed = limit.messages_per_sec_overall // - count`. // // 6. If `allowed == 0` wait a bit and `continue` to the next iteration.