mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
lint
This commit is contained in:
parent
e3d085e5d6
commit
4274eb41a6
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user