Browse Source

ctlv3: remove superfluous session creation

Anthony Romano 9 years ago
parent
commit
82af0c4a7d
1 changed files with 0 additions and 5 deletions
  1. 0 5
      etcdctl/ctlv3/command/elect_command.go

+ 0 - 5
etcdctl/ctlv3/command/elect_command.go

@@ -114,11 +114,6 @@ func campaign(c *clientv3.Client, election string, prop string) error {
 		close(donec)
 	}()
 
-	s, serr := concurrency.NewSession(c)
-	if serr != nil {
-		return serr
-	}
-
 	if err = e.Campaign(ctx, prop); err != nil {
 		return err
 	}