[#612] Fix comment

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
remotes/KirillovDenis/bugfix/681-fix_acl_parsing
Denis Kirillov 2022-07-26 16:40:54 +03:00 committed by Alex Vanin
parent b2e8b1cfb3
commit 5dd658302d
1 changed files with 1 additions and 2 deletions

View File

@ -471,11 +471,10 @@ func (n *layer) getLatestObjectsVersions(ctx context.Context, p allObjectParams)
objects = make([]*data.ObjectInfo, 0, p.MaxKeys)
for obj := range objOutCh {
// TODO (@kirillovdenis) : #612, #525 reconsider stop condition
// TODO (@kirillovdenis) : #625 #612, #525 reconsider stop condition
// currently we handle 3 more items to reduce the likelihood of missing the last object in batch
// (potentially we can miss it because of pool of workers)
if len(objects) == p.MaxKeys+3 {
//next = obj
break
}
objects = append(objects, obj)