mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Fix clippy
This commit is contained in:
parent
e4fba3345f
commit
bcac39a276
1 changed files with 2 additions and 2 deletions
|
@ -183,8 +183,8 @@ pub(super) async fn worker<B>(
|
|||
// (waffle)
|
||||
|
||||
let now = Instant::now();
|
||||
let min_back = now - MINUTE;
|
||||
let sec_back = now - SECOND;
|
||||
let min_back = now.checked_sub(MINUTE).unwrap_or(now);
|
||||
let sec_back = now.checked_sub(SECOND).unwrap_or(now);
|
||||
|
||||
// make history and requests_sent up-to-date
|
||||
while let Some((_, time)) = history.front() {
|
||||
|
|
Loading…
Reference in a new issue