From 959d447d38c121ebcce007823abf6f11cf936257 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Tue, 27 Feb 2018 13:51:37 -0800 Subject: [PATCH] Remove unused context --- nomad/leader.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/nomad/leader.go b/nomad/leader.go index a395c3a91..f65a22477 100644 --- a/nomad/leader.go +++ b/nomad/leader.go @@ -268,16 +268,6 @@ func (s *Server) establishLeadership(stopCh chan struct{}) error { 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. if err := s.establishEnterpriseLeadership(stopCh); err != nil { return err