forked from TrueCloudLab/frostfs-sdk-go
[#158] client: Fix length setter in object hash range
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
bf23b548ab
commit
7ef141aab7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue