Skip to content

Commit

Permalink
Use time.Sleep() instead of <-time.After().
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarmol committed Mar 12, 2015
1 parent c03b080 commit f9d2ab6
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 f9d2ab6

Please sign in to comment.