From 8eb54e1b4b4ad3b721f881c07d9b1ebdea7689ee Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Fri, 16 Dec 2016 00:28:17 -0800 Subject: [PATCH] clientv3: don't reset keepalive stream on grant failure Was triggering cancelation errors on outstanding KeepAlives. --- clientv3/lease.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/clientv3/lease.go b/clientv3/lease.go index 81c9c607235f..b1e155919ecb 100644 --- a/clientv3/lease.go +++ b/clientv3/lease.go @@ -177,9 +177,6 @@ func (l *lessor) Grant(ctx context.Context, ttl int64) (*LeaseGrantResponse, err if isHaltErr(cctx, err) { return nil, toErr(cctx, err) } - if nerr := l.newStream(); nerr != nil { - return nil, nerr - } } }