clientv3: use correct context in toErr (lease)

This commit is contained in:
Gyu-Ho Lee 2016-09-08 10:58:11 +09:00
parent 0b6350227c
commit 1aec483e42

View File

@ -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