[#612] Fix comment

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-07-26 16:40:54 +03:00 committed by Alex Vanin
parent b2e8b1cfb3
commit 5dd658302d

View file

@ -471,11 +471,10 @@ func (n *layer) getLatestObjectsVersions(ctx context.Context, p allObjectParams)
objects = make([]*data.ObjectInfo, 0, p.MaxKeys) objects = make([]*data.ObjectInfo, 0, p.MaxKeys)
for obj := range objOutCh { 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 // 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) // (potentially we can miss it because of pool of workers)
if len(objects) == p.MaxKeys+3 { if len(objects) == p.MaxKeys+3 {
//next = obj
break break
} }
objects = append(objects, obj) objects = append(objects, obj)