forked from TrueCloudLab/frostfs-node
[#290] object/rangehash: Add salt to RangeHashPrm structure
Add binary salt field to RangeHashPrm struct. Implement field setter. Set salt from the request in v2 service. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
ba03f46316
commit
0e2c761481
2 changed files with 8 additions and 0 deletions
|
@ -83,6 +83,7 @@ func (s *Service) toHashRangePrm(req *objectV2.GetRangeHashRequest) (*getsvc.Ran
|
|||
}
|
||||
|
||||
p.SetRangeList(rngs)
|
||||
p.SetSalt(body.GetSalt())
|
||||
|
||||
switch t := body.GetType(); t {
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue