Skip to content

Commit

Permalink
fix waiting groups number
Browse files Browse the repository at this point in the history
  • Loading branch information
mkabilov committed Jul 27, 2017
1 parent f3a16f3 commit 39b9352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (c *Controller) initController() {
func (c *Controller) Run(stopCh <-chan struct{}, wg *sync.WaitGroup) {
c.initController()

wg.Add(4)
wg.Add(3)
go c.runPodInformer(stopCh, wg)
go c.runPostgresqlInformer(stopCh, wg)
go c.clusterResync(stopCh, wg)
Expand All @@ -194,4 +194,4 @@ func (c *Controller) runPostgresqlInformer(stopCh <-chan struct{}, wg *sync.Wait
defer wg.Done()

c.postgresqlInformer.Run(stopCh)
}
}

0 comments on commit 39b9352

Please sign in to comment.