[#1211] innerring: Fix objectIDs list reader

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-03-03 16:26:43 +03:00 committed by Alex Vanin
parent 6d3e626f20
commit ca17eb0eb4

View file

@ -81,14 +81,13 @@ func (x Client) SearchSG(prm SearchSGPrm) (*SearchSGRes, error) {
for {
n, ok = rdr.Read(buf)
if !ok {
break
}
for i := 0; i < n; i++ {
v := buf[i]
list = append(list, &v)
}
if !ok {
break
}
}
res, err := rdr.Close()