forked from TrueCloudLab/frostfs-node
[#1059] control: Fix ListShards
wrapper name
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
77808c7b41
commit
97fd330fae
2 changed files with 4 additions and 4 deletions
|
@ -93,15 +93,15 @@ func (w *dropObjectsResponseWrapper) FromGRPCMessage(m grpc.Message) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type listShardsRequestWrapper struct {
|
type listShardsResponseWrapper struct {
|
||||||
m *ListShardsResponse
|
m *ListShardsResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *listShardsRequestWrapper) ToGRPCMessage() grpc.Message {
|
func (w *listShardsResponseWrapper) ToGRPCMessage() grpc.Message {
|
||||||
return w.m
|
return w.m
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *listShardsRequestWrapper) FromGRPCMessage(m grpc.Message) error {
|
func (w *listShardsResponseWrapper) FromGRPCMessage(m grpc.Message) error {
|
||||||
var ok bool
|
var ok bool
|
||||||
|
|
||||||
w.m, ok = m.(*ListShardsResponse)
|
w.m, ok = m.(*ListShardsResponse)
|
||||||
|
|
|
@ -109,7 +109,7 @@ func ListShards(
|
||||||
req *ListShardsRequest,
|
req *ListShardsRequest,
|
||||||
opts ...client.CallOption,
|
opts ...client.CallOption,
|
||||||
) (*ListShardsResponse, error) {
|
) (*ListShardsResponse, error) {
|
||||||
wResp := &listShardsRequestWrapper{
|
wResp := &listShardsResponseWrapper{
|
||||||
m: new(ListShardsResponse),
|
m: new(ListShardsResponse),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue