From 1aec483e42bd2746475d1914be4b0cd760d183ef Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Thu, 8 Sep 2016 10:58:11 +0900 Subject: [PATCH] clientv3: use correct context in toErr (lease) --- clientv3/lease.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientv3/lease.go b/clientv3/lease.go index e532ed469f6..ae2a136ddd4 100644 --- a/clientv3/lease.go +++ b/clientv3/lease.go @@ -141,7 +141,7 @@ func (l *lessor) Grant(ctx context.Context, ttl int64) (*LeaseGrantResponse, err return gresp, nil } if isHaltErr(cctx, err) { - return nil, toErr(ctx, err) + return nil, toErr(cctx, err) } if nerr := l.newStream(); nerr != nil { return nil, nerr