From d4ae3ad3dd15d450079e4f19d78a4ef6cd705199 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 26 Sep 2023 00:31:15 -0700 Subject: [PATCH] nit Signed-off-by: Kevin Su --- cache/auto_refresh.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cache/auto_refresh.go b/cache/auto_refresh.go index 6907642..d18da90 100644 --- a/cache/auto_refresh.go +++ b/cache/auto_refresh.go @@ -294,6 +294,8 @@ func (w *autoRefresh) sync(ctx context.Context) (err error) { item: item.(Item), }}) + // Since we create batches every time we sync, we will just remove the item from the queue here + // regardless of whether it succeeded the sync or not. w.workqueue.Forget(itemID) w.workqueue.Done(itemID)