[#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:
Leonard Lyubich 2022-05-30 21:15:50 +03:00 committed by LeL
parent d35e935a9d
commit 02e962f727

View file

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