[#158] client: Fix length setter in object hash range

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-03-02 15:49:11 +03:00 committed by Alex Vanin
parent bf23b548ab
commit 7ef141aab7

View file

@ -76,7 +76,7 @@ func (x *PrmObjectHash) SetRangeList(r ...uint64) {
for i := 0; i < ln/2; i++ {
rs[i] = new(v2object.Range)
rs[i].SetOffset(r[2*i])
rs[i].SetOffset(r[2*i+1])
rs[i].SetLength(r[2*i+1])
}
x.body.SetRanges(rs)