diff --git a/retrieval/targetmanager.go b/retrieval/targetmanager.go index 81984a751..5aff7b2b7 100644 --- a/retrieval/targetmanager.go +++ b/retrieval/targetmanager.go @@ -545,6 +545,7 @@ func (sd *StaticProvider) Run(ch chan<- *config.TargetGroup, done <-chan struct{ case ch <- tg: } } + <-done } // TargetGroups returns the provider's target groups.