Rename a function according to go convention

This commit is contained in:
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) HealthCheck(container api.Container) (Status, error)
} }
// MakeHealthChecker creates a new HealthChecker. // NewHealthChecker creates a new HealthChecker which supports multiple types of liveness probes.
func MakeHealthChecker() HealthChecker { func NewHealthChecker() HealthChecker {
return &MuxHealthChecker{ return &MuxHealthChecker{
checkers: map[string]HealthChecker{ checkers: map[string]HealthChecker{
"http": &HTTPHealthChecker{ "http": &HTTPHealthChecker{

View File

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