[#13] neofs-node: Implement Object.GetRangeHash executor

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
support/v0.27
Leonard Lyubich 2020-08-25 19:18:39 +03:00 committed by Alex Vanin
parent 0c83e84613
commit b5671c1971
1 changed files with 7 additions and 2 deletions

View File

@ -120,8 +120,13 @@ func (*objectExecutor) GetRange(_ context.Context, body *object.GetRangeRequestB
return new(simpleRangeBodyStreamer), nil
}
func (*objectExecutor) GetRangeHash(context.Context, *object.GetRangeHashRequestBody) (*object.GetRangeHashResponseBody, error) {
panic("implement me")
func (*objectExecutor) GetRangeHash(_ context.Context, body *object.GetRangeHashRequestBody) (*object.GetRangeHashResponseBody, error) {
fmt.Println(body.GetRanges()[0])
res := new(object.GetRangeHashResponseBody)
res.SetHashList([][]byte{{1, 2, 3}, {4, 5, 6}})
return res, nil
}
func (s *simpleSearchBodyStreamer) Recv() (*object.SearchResponseBody, error) {