fix flushBackoffQCompleted: remove defer

'defer' is called in the 'for' loop, remove it
This commit is contained in:
duc 2022-01-27 17:08:12 +08:00 committed by GitHub
parent 3f6793de48
commit c3bfb568f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -428,7 +428,7 @@ func (p *PriorityQueue) flushBackoffQCompleted() {
} }
p.activeQ.Add(rawPodInfo) p.activeQ.Add(rawPodInfo)
metrics.SchedulerQueueIncomingPods.WithLabelValues("active", BackoffComplete).Inc() metrics.SchedulerQueueIncomingPods.WithLabelValues("active", BackoffComplete).Inc()
defer p.cond.Broadcast() p.cond.Broadcast()
} }
} }