Address review feedback

This commit is contained in:
vishalnayak 2016-08-01 11:15:25 -04:00
parent b0ee8869fc
commit 577cd9de35
2 changed files with 2 additions and 2 deletions

View File

@ -437,7 +437,7 @@ func (c *ServerCommand) Run(args []string) int {
} }
} }
// Wait for dependant goroutines to complete // Wait for dependent goroutines to complete
c.WaitGroup.Wait() c.WaitGroup.Wait()
return 0 return 0
} }

View File

@ -421,7 +421,7 @@ func (c *ConsulBackend) RunServiceDiscovery(shutdownTriggered *bool, waitGroup *
return err return err
} }
// 'server' command will wait for the belog goroutine to complete // 'server' command will wait for the below goroutine to complete
waitGroup.Add(1) waitGroup.Add(1)
go c.runEventDemuxer(shutdownTriggered, waitGroup, shutdownCh, advertiseAddr, activeFunc, sealedFunc) go c.runEventDemuxer(shutdownTriggered, waitGroup, shutdownCh, advertiseAddr, activeFunc, sealedFunc)