[#1211] neofs-cli: Fix objectIDs list reader
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
4935016bf8
commit
6d3e626f20
1 changed files with 3 additions and 4 deletions
|
@ -679,14 +679,13 @@ func SearchObjects(prm SearchObjectsPrm) (*SearchObjectsRes, 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
|
||||
}
|
||||
}
|
||||
|
||||
_, err = rdr.Close()
|
||||
|
|
Loading…
Reference in a new issue