forked from TrueCloudLab/frostfs-node
[#13] neofs-node: Implement Object.GetRangeHash executor
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
0c83e84613
commit
b5671c1971
1 changed files with 7 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue