From 5dd658302da76c4f10a81fe989e3a0f75814bb57 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Tue, 26 Jul 2022 16:40:54 +0300 Subject: [PATCH] [#612] Fix comment Signed-off-by: Denis Kirillov --- api/layer/object.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/layer/object.go b/api/layer/object.go index 8bd7727a..927cbc9e 100644 --- a/api/layer/object.go +++ b/api/layer/object.go @@ -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)