mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-13 11:18:17 +01:00
Reformat throttle.rs
This commit is contained in:
parent
8deaac04fa
commit
0d25d357d9
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue