From 02e962f7270ed397c39f22d3d138269b556e41b7 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 30 May 2022 21:15:50 +0300 Subject: [PATCH] [#401] object: Fix `GetRangeResponseBody.FromGRPCMessage` Pass `SplitInfo` field of `GetRangeResponse_Body_SplitInfo` message into `SplitInfo` decoder. Signed-off-by: Leonard Lyubich --- object/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object/convert.go b/object/convert.go index 0db3dcda..c4b08685 100644 --- a/object/convert.go +++ b/object/convert.go @@ -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)