Explorar o código

clientv3: close Lease on client Close

Fixes #6987
Anthony Romano %!s(int64=9) %!d(string=hai) anos
pai
achega
246fb29d8a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      clientv3/client.go

+ 1 - 0
clientv3/client.go

@@ -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())
 }
 }