diff --git a/common/collect/timed_queue.go b/common/collect/timed_queue.go index 5b619a86..3a498b58 100644 --- a/common/collect/timed_queue.go +++ b/common/collect/timed_queue.go @@ -90,6 +90,8 @@ func (queue *TimedQueue) cleanup(tick <-chan time.Time) { queue.queue.Swap(i, queue.queue.Len()-1) queue.queue.Pop() changed = true + } else { + break } } if changed {