diff --git a/common/collect/timed_queue.go b/common/collect/timed_queue.go index 52d865c94..291d8ad56 100644 --- a/common/collect/timed_queue.go +++ b/common/collect/timed_queue.go @@ -22,9 +22,7 @@ func (queue timedQueueImpl) Less(i, j int) bool { } func (queue timedQueueImpl) Swap(i, j int) { - tmp := queue[i] - queue[i] = queue[j] - queue[j] = tmp + queue[i], queue[j] = queue[j], queue[i] } func (queue *timedQueueImpl) Push(value interface{}) {