etcdctl: remove superfluous session in lock command

This commit is contained in:
Anthony Romano 2016-10-05 13:30:36 -07:00
parent 98897b7603
commit f2af08f5aa

View File

@ -64,11 +64,6 @@ func lockUntilSignal(c *clientv3.Client, lockname string) error {
close(donec)
}()
s, serr := concurrency.NewSession(c)
if serr != nil {
return serr
}
if err := m.Lock(ctx); err != nil {
return err
}