mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
scheduler: cleanup return value
This commit is contained in:
parent
f6243782d0
commit
d484b1aa3d
@ -474,7 +474,7 @@ func (p *PriorityQueue) Pop() (*framework.QueuedPodInfo, error) {
|
|||||||
pInfo := obj.(*framework.QueuedPodInfo)
|
pInfo := obj.(*framework.QueuedPodInfo)
|
||||||
pInfo.Attempts++
|
pInfo.Attempts++
|
||||||
p.schedulingCycle++
|
p.schedulingCycle++
|
||||||
return pInfo, err
|
return pInfo, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// isPodUpdated checks if the pod is updated in a way that it may have become
|
// isPodUpdated checks if the pod is updated in a way that it may have become
|
||||||
|
Loading…
Reference in New Issue
Block a user