diff --git a/common/collect/timed_queue.go b/common/collect/timed_queue.go index 291d8ad56..c8e16b9c2 100644 --- a/common/collect/timed_queue.go +++ b/common/collect/timed_queue.go @@ -39,6 +39,7 @@ func (queue *timedQueueImpl) Pop() interface{} { return v } +// TimedQueue is a priority queue that entries with oldest timestamp get removed first. type TimedQueue struct { queue timedQueueImpl access sync.RWMutex