From 0ff354341b5bb3d7a38d2b5f1ebe9a6342e6d9b7 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Tue, 5 Jul 2016 10:13:24 +0200 Subject: [PATCH] discovery/kubernetes: remove unused channel --- retrieval/discovery/kubernetes/discovery.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/retrieval/discovery/kubernetes/discovery.go b/retrieval/discovery/kubernetes/discovery.go index d06411d67..f05e2aa5e 100644 --- a/retrieval/discovery/kubernetes/discovery.go +++ b/retrieval/discovery/kubernetes/discovery.go @@ -104,7 +104,6 @@ type Discovery struct { apiServers []config.URL apiServersMu sync.RWMutex - runDone chan struct{} } // Initialize sets up the discovery for usage. @@ -117,14 +116,13 @@ func (kd *Discovery) Initialize() error { kd.apiServers = kd.Conf.APIServers kd.client = client - kd.runDone = make(chan struct{}) return nil } // Run implements the TargetProvider interface. func (kd *Discovery) Run(ctx context.Context, ch chan<- []*config.TargetGroup) { - log.Debugf("Kubernetes Discovery.Run beginning") + log.Debugf("Start Kubernetes service discovery") defer close(ch) switch kd.Conf.Role {