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>
This commit is contained in:
parent
e887368be6
commit
3844a3ac74
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue