An Agent's consulSyncer is always not nil now.

This commit is contained in:
Sean Chittenden 2016-05-23 21:45:13 -07:00
parent 98cea9ba07
commit 882364f4d9
No known key found for this signature in database
GPG key ID: 4EBC9DC16C2E5E16

View file

@ -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
}