mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-09 11:43:57 +01:00
Update src/adaptors/throttle.rs
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
This commit is contained in:
parent
d58b21c42f
commit
916a774c88
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue