Skip to content

Commit

Permalink
Merge pull request #6383 from gyuho/lease-client
Browse files Browse the repository at this point in the history
clientv3: use correct context in toErr (lease)
  • Loading branch information
xiang90 authored Sep 8, 2016
2 parents 0b63502 + 1aec483 commit 0cc2f82
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 0cc2f82

Please sign in to comment.