فهرست منبع

Merge pull request #7007 from heyitsanthony/lease-close

clientv3: close Lease on client Close
Anthony Romano 9 سال پیش
والد
کامیت
d8513adf1d
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 {
 	c.cancel()
 	c.Watcher.Close()
+	c.Lease.Close()
 	return toErr(c.ctx, c.conn.Close())
 }