forked from TrueCloudLab/frostfs-api-go
[#342] v2/reputation: Fix incorrect return of AnnounceIntermediateResult
Return `AnnounceIntermediateResultResponse` instead of `AnnounceIntermediateResultRequest` from `rpc.AnnounceIntermediateResult`. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>support/v2.15
parent
e887368be6
commit
3844a3ac74
|
@ -34,8 +34,8 @@ func AnnounceIntermediateResult(
|
||||||
cli *client.Client,
|
cli *client.Client,
|
||||||
req *reputation.AnnounceIntermediateResultRequest,
|
req *reputation.AnnounceIntermediateResultRequest,
|
||||||
opts ...client.CallOption,
|
opts ...client.CallOption,
|
||||||
) (*reputation.AnnounceIntermediateResultRequest, error) {
|
) (*reputation.AnnounceIntermediateResultResponse, error) {
|
||||||
resp := new(reputation.AnnounceIntermediateResultRequest)
|
resp := new(reputation.AnnounceIntermediateResultResponse)
|
||||||
|
|
||||||
err := client.SendUnary(cli, common.CallMethodInfoUnary(serviceReputation, rpcReputationAnnounceIntermediateResult), req, resp, opts...)
|
err := client.SendUnary(cli, common.CallMethodInfoUnary(serviceReputation, rpcReputationAnnounceIntermediateResult), req, resp, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue