mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #6589 from heyitsanthony/etcdctl-lock-one-session
etcdctl: remove superfluous session in lock command
This commit is contained in:
commit
7f0d5946ff
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user