Merge pull request #5386 from vmarmol/fix

Use time.Sleep() instead of <-time.After().
This commit is contained in:
Alex Robinson 2015-03-12 09:41:11 -07:00
commit bc60b54030

View File

@ -112,7 +112,7 @@ func (kl *Kubelet) runPod(pod api.BoundPod) error {
}
// TODO(proppy): health checking would be better than waiting + checking the state at the next iteration.
glog.Infof("pod %q containers synced, waiting for %v", pod.Name, delay)
<-time.After(delay)
time.Sleep(delay)
retry++
delay *= RunOnceRetryDelayBackoff
}