mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #5386 from vmarmol/fix
Use time.Sleep() instead of <-time.After().
This commit is contained in:
commit
bc60b54030
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user