Add func comment for MakeNextPodFunc

This commit is contained in:
danielqsj 2019-01-08 11:07:47 +08:00
parent 554ad383e3
commit 8dc1e83946

View File

@ -809,6 +809,8 @@ func newNominatedPodMap() *nominatedPodMap {
}
}
// MakeNextPodFunc returns a function to retrieve the next pod from a given
// scheduling queue
func MakeNextPodFunc(queue SchedulingQueue) func() *v1.Pod {
return func() *v1.Pod {
pod, err := queue.Pop()