mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-07 06:37:17 +02:00
Only exit static target provider on done
This commit is contained in:
parent
b4adf2723d
commit
f592740bac
@ -545,6 +545,7 @@ func (sd *StaticProvider) Run(ch chan<- *config.TargetGroup, done <-chan struct{
|
|||||||
case ch <- tg:
|
case ch <- tg:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
<-done
|
||||||
}
|
}
|
||||||
|
|
||||||
// TargetGroups returns the provider's target groups.
|
// TargetGroups returns the provider's target groups.
|
||||||
|
Loading…
Reference in New Issue
Block a user