From 97fd330fae4a4b583ba4ac96402dcdfa172e5dda Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 29 Dec 2021 18:12:40 +0300 Subject: [PATCH] [#1059] control: Fix `ListShards` wrapper name Signed-off-by: Pavel Karpy --- pkg/services/control/convert.go | 6 +++--- pkg/services/control/rpc.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/services/control/convert.go b/pkg/services/control/convert.go index ee344632e..02c74d136 100644 --- a/pkg/services/control/convert.go +++ b/pkg/services/control/convert.go @@ -93,15 +93,15 @@ func (w *dropObjectsResponseWrapper) FromGRPCMessage(m grpc.Message) error { return nil } -type listShardsRequestWrapper struct { +type listShardsResponseWrapper struct { m *ListShardsResponse } -func (w *listShardsRequestWrapper) ToGRPCMessage() grpc.Message { +func (w *listShardsResponseWrapper) ToGRPCMessage() grpc.Message { return w.m } -func (w *listShardsRequestWrapper) FromGRPCMessage(m grpc.Message) error { +func (w *listShardsResponseWrapper) FromGRPCMessage(m grpc.Message) error { var ok bool w.m, ok = m.(*ListShardsResponse) diff --git a/pkg/services/control/rpc.go b/pkg/services/control/rpc.go index dd8609823..c8edde492 100644 --- a/pkg/services/control/rpc.go +++ b/pkg/services/control/rpc.go @@ -109,7 +109,7 @@ func ListShards( req *ListShardsRequest, opts ...client.CallOption, ) (*ListShardsResponse, error) { - wResp := &listShardsRequestWrapper{ + wResp := &listShardsResponseWrapper{ m: new(ListShardsResponse), }