Remove unused context

This commit is contained in:
Michael Schurter 2018-02-27 13:51:37 -08:00
parent 8b41e9b2e1
commit 959d447d38

View file

@ -268,16 +268,6 @@ func (s *Server) establishLeadership(stopCh chan struct{}) error {
go s.replicateACLTokens(stopCh) go s.replicateACLTokens(stopCh)
} }
// Convert stopCh into a Context
ctx, cancel := context.WithCancel(context.Background())
go func() {
defer cancel()
select {
case <-stopCh:
case <-ctx.Done():
}
}()
// Setup any enterprise systems required. // Setup any enterprise systems required.
if err := s.establishEnterpriseLeadership(stopCh); err != nil { if err := s.establishEnterpriseLeadership(stopCh); err != nil {
return err return err