From 3844a3ac741ada8e831bea2acfae96819661a13f Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 27 Sep 2021 14:31:38 +0300 Subject: [PATCH] [#342] v2/reputation: Fix incorrect return of AnnounceIntermediateResult Return `AnnounceIntermediateResultResponse` instead of `AnnounceIntermediateResultRequest` from `rpc.AnnounceIntermediateResult`. Signed-off-by: Leonard Lyubich --- v2/rpc/reputation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/rpc/reputation.go b/v2/rpc/reputation.go index 3706e389..ad9d2d9d 100644 --- a/v2/rpc/reputation.go +++ b/v2/rpc/reputation.go @@ -34,8 +34,8 @@ func AnnounceIntermediateResult( cli *client.Client, req *reputation.AnnounceIntermediateResultRequest, opts ...client.CallOption, -) (*reputation.AnnounceIntermediateResultRequest, error) { - resp := new(reputation.AnnounceIntermediateResultRequest) +) (*reputation.AnnounceIntermediateResultResponse, error) { + resp := new(reputation.AnnounceIntermediateResultResponse) err := client.SendUnary(cli, common.CallMethodInfoUnary(serviceReputation, rpcReputationAnnounceIntermediateResult), req, resp, opts...) if err != nil {