Skip to content

Commit

Permalink
clientv3: use correct context in toErr (lease)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyuho committed Sep 8, 2016
1 parent 0b63502 commit 1aec483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clientv3/lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1aec483

Please sign in to comment.