From c159e77fe35eeaecdb224ec9caaf44ce07e1ce3b Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Mon, 23 May 2016 21:45:13 -0700 Subject: [PATCH] An Agent's consulSyncer is always not nil now. --- command/agent/agent.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/command/agent/agent.go b/command/agent/agent.go index 394768826..0eb9cd03b 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -80,10 +80,8 @@ func NewAgent(config *Config, logOutput io.Writer) (*Agent, error) { if err := a.syncAgentServicesWithConsul(); err != nil { a.logger.Printf("[ERR] agent: unable to sync agent services with consul: %v", err) } - if a.consulSyncer != nil { - go a.consulSyncer.Run() - } } + go a.consulSyncer.Run() return a, nil }