From 0143bef8c78dee113b5f9988ba6e4c6a03ff9055 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Thu, 30 Mar 2017 16:40:24 -0700 Subject: [PATCH] Remove unused syncInterval --- command/agent/consul/client.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/command/agent/consul/client.go b/command/agent/consul/client.go index 6365eb0b8..ea3062ff8 100644 --- a/command/agent/consul/client.go +++ b/command/agent/consul/client.go @@ -74,7 +74,6 @@ type ServiceClient struct { client AgentAPI logger *log.Logger retryInterval time.Duration - syncInterval time.Duration // runningCh is closed when the main Run loop exits runningCh chan struct{} @@ -123,7 +122,6 @@ func NewServiceClient(consulClient AgentAPI, logger *log.Logger) *ServiceClient client: consulClient, logger: logger, retryInterval: defaultSyncInterval, //TODO what should this default to?! - syncInterval: defaultSyncInterval, runningCh: make(chan struct{}), shutdownCh: make(chan struct{}), shutdownWait: defaultShutdownWait,