diff --git a/retrieval/discovery/marathon.go b/retrieval/discovery/marathon.go index e6f8edcf7c..e22cf48f02 100644 --- a/retrieval/discovery/marathon.go +++ b/retrieval/discovery/marathon.go @@ -25,7 +25,6 @@ func NewMarathon(conf *config.MarathonSDConfig) *marathon.Discovery { return &marathon.Discovery{ Servers: conf.Servers, RefreshInterval: time.Duration(conf.RefreshInterval), - Done: make(chan struct{}), Client: marathon.FetchApps, } } diff --git a/retrieval/discovery/marathon/marathon_test.go b/retrieval/discovery/marathon/marathon_test.go index c01c876c25..79cb534665 100644 --- a/retrieval/discovery/marathon/marathon_test.go +++ b/retrieval/discovery/marathon/marathon_test.go @@ -30,8 +30,8 @@ func newTestDiscovery(client AppListClient) (chan []*config.TargetGroup, *Discov ch := make(chan []*config.TargetGroup) md := &Discovery{ Servers: []string{"http://localhost:8080"}, + Client: client, } - md.Client = client return ch, md }