mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-05-16 12:08:43 -04:00
Simplify swap
This commit is contained in:
parent
1b8e100879
commit
794b5081e3
@ -22,9 +22,7 @@ func (queue timedQueueImpl) Less(i, j int) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (queue timedQueueImpl) Swap(i, j int) {
|
func (queue timedQueueImpl) Swap(i, j int) {
|
||||||
tmp := queue[i]
|
queue[i], queue[j] = queue[j], queue[i]
|
||||||
queue[i] = queue[j]
|
|
||||||
queue[j] = tmp
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (queue *timedQueueImpl) Push(value interface{}) {
|
func (queue *timedQueueImpl) Push(value interface{}) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user