Merge pull request #7007 from heyitsanthony/lease-close

clientv3: close Lease on client Close
This commit is contained in:
Anthony Romano 2016-12-14 16:06:32 -08:00 committed by GitHub
commit d8513adf1d

View File

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