[#1059] control: Fix ListShards wrapper name

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-12-29 18:12:40 +03:00 committed by Alex Vanin
parent 77808c7b41
commit 97fd330fae
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -109,7 +109,7 @@ func ListShards(
req *ListShardsRequest,
opts ...client.CallOption,
) (*ListShardsResponse, error) {
wResp := &listShardsRequestWrapper{
wResp := &listShardsResponseWrapper{
m: new(ListShardsResponse),
}