mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-08 22:22:42 +02:00
get rid of unnecessary goroutines
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user