Remove some lies

This commit is contained in:
Michael Schurter 2017-03-30 16:59:00 -07:00
parent 0143bef8c7
commit 8118c41931
1 changed files with 1 additions and 2 deletions

View File

@ -121,7 +121,7 @@ func NewServiceClient(consulClient AgentAPI, logger *log.Logger) *ServiceClient
return &ServiceClient{
client: consulClient,
logger: logger,
retryInterval: defaultSyncInterval, //TODO what should this default to?!
retryInterval: defaultSyncInterval,
runningCh: make(chan struct{}),
shutdownCh: make(chan struct{}),
shutdownWait: defaultShutdownWait,
@ -158,7 +158,6 @@ func (c *ServiceClient) Run() {
lastOk = false
c.logger.Printf("[WARN] consul: failed to update services in Consul: %v", err)
}
//TODO Log? and jitter/backoff
timer.Reset(c.retryInterval)
} else {
if !lastOk {