[#1211] innerring: Fix objectIDs list reader

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
remotes/fyrchik/relay-config
Alex Vanin 2022-03-03 16:26:43 +03:00 committed by Alex Vanin
parent 6d3e626f20
commit ca17eb0eb4
1 changed files with 3 additions and 4 deletions

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()