Преглед на файлове

clientv3: close Lease on client Close

Fixes #6987
Anthony Romano преди 9 години
родител
ревизия
246fb29d8a
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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())
 }
 }