Fix DNS-SD target refresh condition.
This commit is contained in:
parent
697d3139d0
commit
91cf1e9a26
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue