Skip to content

Commit

Permalink
Merge pull request kubernetes#5386 from vmarmol/fix
Browse files Browse the repository at this point in the history
Use time.Sleep() instead of <-time.After().
  • Loading branch information
a-robinson committed Mar 12, 2015
2 parents c03b080 + f9d2ab6 commit bc60b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubelet/runonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bc60b54

Please sign in to comment.