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 ed5895f commit b8e2760Copy full SHA for b8e2760
pkg/controller/priorityqueue/priorityqueue.go
@@ -239,7 +239,6 @@ func (w *priorityqueue[T]) spin() {
239
}
240
241
for {
242
- metricsAscend := false
243
pivotChange := false
244
245
w.queue.AscendGreaterOrEqual(&pivot, func(item *item[T]) bool {
@@ -265,8 +264,7 @@ func (w *priorityqueue[T]) spin() {
265
264
266
267
268
- if w.waiters.Load() == 0 || metricsAscend {
269
- metricsAscend = true
+ if w.waiters.Load() == 0 {
270
// Have to keep iterating here to ensure we update metrics
271
// for further items that became ready and set nextReady.
272
return true
0 commit comments