Browse Source

clientv3: don't reset keepalive stream on grant failure

Was triggering cancelation errors on outstanding KeepAlives if Grant
had to retry.
Anthony Romano 9 years ago
parent
commit
a375e91c66
1 changed files with 0 additions and 3 deletions
  1. 0 3
      clientv3/lease.go

+ 0 - 3
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
-		}
 	}
 }