clientv3: Fix govet errors

This commit is contained in:
Manjunath A Kumatagi 2018-01-25 04:48:47 -05:00
parent 89221a25b8
commit 1f638c4ad8
2 changed files with 2 additions and 2 deletions

View File

@ -298,7 +298,7 @@ func (lc *leaseCache) evalOps(ops []v3.Op) ([]*v3pb.ResponseOp, bool) {
}
resps[i] = &v3pb.ResponseOp{
Response: &v3pb.ResponseOp_ResponseRange{
(*v3pb.RangeResponse)(resp),
ResponseRange: (*v3pb.RangeResponse)(resp),
},
}
}

View File

@ -85,7 +85,7 @@ func (txn *txnLeasing) eval() (*v3.TxnResponse, error) {
if !ok {
return nil, nil
}
return &v3.TxnResponse{copyHeader(txn.lkv.leases.header), succeeded, resps}, nil
return &v3.TxnResponse{Header: copyHeader(txn.lkv.leases.header), Succeeded: succeeded, Responses: resps}, nil
}
// fallback computes the ops to fetch all possible conflicting