Skip to content

Commit 55e3426

Browse files
moritzmoealvaroaleman
authored andcommitted
Update pkg/controller/priorityqueue/priorityqueue.go
Co-authored-by: Alvaro Aleman <[email protected]>
1 parent fb1dd4f commit 55e3426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/priorityqueue/priorityqueue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func (w *priorityqueue[T]) spin() {
234234

235235
// Items in the queue tree are sorted first by priority and second by readiness, so
236236
// items with a lower priority might be ready further down in the queue.
237-
// In search for ready items we use the pivot item to skip through priorities without ascending the whole tree.
237+
// We iterate through the priorities high to low until we find a ready item
238238
pivot := item[T]{
239239
Key: key,
240240
AddedCounter: 0,

0 commit comments

Comments
 (0)