[#401] object: Fix GetRangeResponseBody.FromGRPCMessage
Pass `SplitInfo` field of `GetRangeResponse_Body_SplitInfo` message into `SplitInfo` decoder. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
d35e935a9d
commit
02e962f727
1 changed files with 1 additions and 1 deletions
|
@ -1832,7 +1832,7 @@ func (r *GetRangeResponseBody) FromGRPCMessage(m grpc.Message) error {
|
|||
if pt != nil {
|
||||
partSplit := new(SplitInfo)
|
||||
r.rngPart = partSplit
|
||||
err = partSplit.FromGRPCMessage(pt)
|
||||
err = partSplit.FromGRPCMessage(pt.SplitInfo)
|
||||
}
|
||||
default:
|
||||
err = fmt.Errorf("unknown get range part %T", pt)
|
||||
|
|
Loading…
Reference in a new issue