Rename a function according to go convention

pull/6/head
Yuki Sonoda (Yugui) 2014-07-16 22:05:06 +09:00
parent 1395b0fbf0
commit df9da65939
2 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,8 @@ type HealthChecker interface {
HealthCheck(container api.Container) (Status, error)
}
// MakeHealthChecker creates a new HealthChecker.
func MakeHealthChecker() HealthChecker {
// NewHealthChecker creates a new HealthChecker which supports multiple types of liveness probes.
func NewHealthChecker() HealthChecker {
return &MuxHealthChecker{
checkers: map[string]HealthChecker{
"http": &HTTPHealthChecker{

View File

@ -139,7 +139,7 @@ func (kl *Kubelet) RunKubelet(dockerEndpoint, configPath, manifestURL, etcdServe
}
go util.Forever(func() { s.ListenAndServe() }, 0)
}
kl.HealthChecker = health.MakeHealthChecker()
kl.HealthChecker = health.NewHealthChecker()
kl.syncLoop(updateChannel, kl)
}