fix strange argument order

This commit is contained in:
Murat Kabilov 2017-07-25 15:55:07 +02:00
parent 9bff6cff39
commit 27e21c6ec8
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ func (c *Controller) Run(stopCh <-chan struct{}, wg *sync.WaitGroup) {
for i := range c.clusterEventQueues {
wg.Add(1)
go c.processClusterEventsQueue(stopCh, i, wg)
go c.processClusterEventsQueue(i, stopCh, wg)
}
c.logger.Info("Started working in background")

View File

@ -228,7 +228,7 @@ func (c *Controller) processEvent(obj interface{}) error {
return nil
}
func (c *Controller) processClusterEventsQueue(stopCh <-chan struct{}, idx int, wg *sync.WaitGroup) {
func (c *Controller) processClusterEventsQueue(idx int, stopCh <-chan struct{}, wg *sync.WaitGroup) {
defer wg.Done()
go func() {