get rid of unnecessary goroutines
This commit is contained in:
		
							parent
							
								
									f326e58456
								
							
						
					
					
						commit
						f7774803b6
					
				|  | @ -146,15 +146,11 @@ func (c *Controller) initController() { | ||||||
| func (c *Controller) runPodInformer(stopCh <-chan struct{}, wg *sync.WaitGroup) { | func (c *Controller) runPodInformer(stopCh <-chan struct{}, wg *sync.WaitGroup) { | ||||||
| 	defer wg.Done() | 	defer wg.Done() | ||||||
| 
 | 
 | ||||||
| 	go c.podInformer.Run(stopCh) | 	c.podInformer.Run(stopCh) | ||||||
| 
 |  | ||||||
| 	<-stopCh |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| func (c *Controller) runPostgresqlInformer(stopCh <-chan struct{}, wg *sync.WaitGroup) { | func (c *Controller) runPostgresqlInformer(stopCh <-chan struct{}, wg *sync.WaitGroup) { | ||||||
| 	defer wg.Done() | 	defer wg.Done() | ||||||
| 
 | 
 | ||||||
| 	go c.postgresqlInformer.Run(stopCh) | 	c.postgresqlInformer.Run(stopCh) | ||||||
| 
 |  | ||||||
| 	<-stopCh |  | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue