Skip to content

Commit

Permalink
[#1059] control: Fix ListShards wrapper name
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell authored and alexvanin committed Dec 30, 2021
1 parent 77808c7 commit 97fd330
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/services/control/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/control/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func ListShards(
req *ListShardsRequest,
opts ...client.CallOption,
) (*ListShardsResponse, error) {
wResp := &listShardsRequestWrapper{
wResp := &listShardsResponseWrapper{
m: new(ListShardsResponse),
}

Expand Down

0 comments on commit 97fd330

Please sign in to comment.