Use time.Sleep() instead of <-time.After().

pull/6/head
Victor Marmol 2015-03-12 09:25:09 -07:00
parent c03b080328
commit f9d2ab6e48
1 changed files with 1 additions and 1 deletions

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
}