diff options
Diffstat (limited to 'pkg/priority_queue/binary_heap.go')
-rw-r--r-- | pkg/priority_queue/binary_heap.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/priority_queue/binary_heap.go b/pkg/priority_queue/binary_heap.go index e47dd2c8..514ca460 100644 --- a/pkg/priority_queue/binary_heap.go +++ b/pkg/priority_queue/binary_heap.go @@ -104,7 +104,7 @@ func (bh *BinHeap) Insert(item Item) { bh.cond.Signal() } -func (bh *BinHeap) GetMax() Item { +func (bh *BinHeap) ExtractMin() Item { bh.cond.L.Lock() // if len == 0, wait for the signal |