Add func comment for MakeNextPodFunc

pull/564/head
danielqsj 2019-01-08 11:07:47 +08:00
parent 554ad383e3
commit 8dc1e83946
1 changed files with 2 additions and 0 deletions

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()