mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #7007 from heyitsanthony/lease-close
clientv3: close Lease on client Close
This commit is contained in:
commit
d8513adf1d
@ -88,6 +88,7 @@ func NewFromConfigFile(path string) (*Client, error) {
|
|||||||
func (c *Client) Close() error {
|
func (c *Client) Close() error {
|
||||||
c.cancel()
|
c.cancel()
|
||||||
c.Watcher.Close()
|
c.Watcher.Close()
|
||||||
|
c.Lease.Close()
|
||||||
return toErr(c.ctx, c.conn.Close())
|
return toErr(c.ctx, c.conn.Close())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user