Skip to content
Snippets Groups Projects
Commit f7774803 authored by Murat Kabilov's avatar Murat Kabilov Committed by GitHub
Browse files

get rid of unnecessary goroutines

parent f326e584
Branches
No related tags found
No related merge requests found
......@@ -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)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment