Merge pull request #107542 from kerthcet/feature/fix-not-return-when-channel-closed

fix not return when channel closed
This commit is contained in:
Kubernetes Prow Robot
2022-01-19 00:26:06 -08:00
committed by GitHub

View File

@@ -251,6 +251,7 @@ func getVersionPeriodically(stopCh <-chan struct{}) {
}
select {
case <-stopCh:
return
case <-time.After(scrapeTimeout):
}
}