get rid of unnecessary goroutines

This commit is contained in:
Murat Kabilov
2017-07-17 10:37:14 +02:00
committed by GitHub
parent f326e58456
commit f7774803b6
+2 -6
View File
@@ -146,15 +146,11 @@ func (c *Controller) initController() {
func (c *Controller) runPodInformer(stopCh <-chan struct{}, wg *sync.WaitGroup) {
defer wg.Done()
go c.podInformer.Run(stopCh)
<-stopCh
c.podInformer.Run(stopCh)
}
func (c *Controller) runPostgresqlInformer(stopCh <-chan struct{}, wg *sync.WaitGroup) {
defer wg.Done()
go c.postgresqlInformer.Run(stopCh)
<-stopCh
c.postgresqlInformer.Run(stopCh)
}