We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d244c7c commit 8c5382fCopy full SHA for 8c5382f
pkg/controller/priorityqueue/priorityqueue.go
@@ -234,7 +234,7 @@ func (w *priorityqueue[T]) spin() {
234
235
// Items in the queue tree are sorted first by priority and second by readiness, so
236
// 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.
+ // We iterate through the priorities high to low until we find a ready item
238
pivot := item[T]{
239
Key: key,
240
AddedCounter: 0,
0 commit comments