diff --git a/retrieval/target_provider.go b/retrieval/target_provider.go index 7e23c090a..106b272cc 100644 --- a/retrieval/target_provider.go +++ b/retrieval/target_provider.go @@ -52,7 +52,7 @@ func NewSdTargetProvider(job config.JobConfig) *sdTargetProvider { } func (p *sdTargetProvider) Targets() ([]Target, error) { - if time.Since(p.lastRefresh) > p.refreshInterval { + if time.Since(p.lastRefresh) < p.refreshInterval { return p.targets, nil }