discovery: simplify client initialization

This commit is contained in:
Fabian Reinartz 2016-04-30 21:04:19 +02:00
parent b5bfb502df
commit 76076bfb47
2 changed files with 1 additions and 2 deletions

View File

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

View File

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