diff --git a/pkg/services/control/convert.go b/pkg/services/control/convert.go index ee344632..02c74d13 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 dd860982..c8edde49 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), }