Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removes duplicate index-setting code in priority queue heap
  • Loading branch information
owen-d committed Dec 11, 2024
commit 497ac91ac626cf19c196de7fcd510ca8fada0793
3 changes: 1 addition & 2 deletions pkg/blockbuilder/scheduler/priority_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ func (pq *PriorityQueue[K, V]) Push(v V) {
}

// Add new item
idx := pq.h.Len()
it := &item[V]{value: v, index: idx}
it := &item[V]{value: v}
pq.m[k] = it
heap.Push(pq.h, it)
}
Expand Down