From a16bb6b3620eff121feabd41661af9d8901ccd44 Mon Sep 17 00:00:00 2001 From: boyce Date: Tue, 25 May 2021 10:16:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BC=98=E5=85=88=E9=98=9F?= =?UTF-8?q?=E5=88=97-Priority=E5=80=BC=E8=B6=8A=E5=A4=A7=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=85=88=E7=BA=A7=E8=B6=8A=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/queue/priorityqueue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/queue/priorityqueue.go b/util/queue/priorityqueue.go index c07e725..842201d 100644 --- a/util/queue/priorityqueue.go +++ b/util/queue/priorityqueue.go @@ -17,7 +17,7 @@ func (pq PriorityQueueSlice) Len() int { return len(pq) } func (pq PriorityQueueSlice) Less(i, j int) bool { // We want Pop to give us the highest, not lowest, Priority so we use greater than here. - return pq[i].Priority < pq[j].Priority + return pq[i].Priority > pq[j].Priority } func (pq PriorityQueueSlice) Swap(i, j int) {