Merge pull request #76927 from mrkm4ntr/unnecessary-goroutine

Do not generate unnecessary goroutines
This commit is contained in:
Kubernetes Prow Robot
2019-05-06 21:31:53 -07:00
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@@ -1034,7 +1034,7 @@ func (pm *VolumePluginMgr) Run(stopCh <-chan struct{}) {
// start informer for CSIDriver
if utilfeature.DefaultFeatureGate.Enabled(features.CSIDriverRegistry) {
informerFactory := kletHost.GetInformerFactory()
go informerFactory.Start(stopCh)
informerFactory.Start(stopCh)
}
}
}