mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3: Fix govet errors
This commit is contained in:
parent
89221a25b8
commit
1f638c4ad8
@ -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),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user