Reformat throttle.rs

This commit is contained in:
Temirkhan Myrzamadi 2021-02-16 02:09:06 +06:00
parent 8deaac04fa
commit 0d25d357d9

View file

@ -53,8 +53,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.messages_per_sec_overall
// - count`.
// limit.messages_per_sec_overall - count`.
//
// 6. If `allowed == 0` wait a bit and `continue` to the next iteration.
//