From 4274eb41a6c9df2127540ad8fe9785fe2d80a899 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Tue, 6 Feb 2024 16:15:40 +0000 Subject: [PATCH] lint --- src/util/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/util/mod.rs b/src/util/mod.rs index 78cfa648..2246a0e3 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -39,7 +39,7 @@ impl QueueWithBackoff { let since_the_epoch = start.duration_since(UNIX_EPOCH).unwrap().as_millis(); // We only need to check this once, as we won't be adding to the backoff queue - // as often as we pull from it. + // as often as we pull from it. if let Some(item) = self.backoff.first_entry() { if *item.key() < since_the_epoch { let v = item.remove(); @@ -47,7 +47,6 @@ impl QueueWithBackoff { } } - self.queue.pop_front() } @@ -79,7 +78,7 @@ impl QueueWithBackoff { while self.backoff.contains_key(&time) { time = time + 1; } - + self.backoff.insert(time, backoff_item); backoff_duration }