From 5ea45afea763bc466baf94514f992d4cfab7c674 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 26 Sep 2023 00:30:21 -0700 Subject: [PATCH] nit Signed-off-by: Kevin Su --- cache/auto_refresh.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cache/auto_refresh.go b/cache/auto_refresh.go index ef6ed2b..6907642 100644 --- a/cache/auto_refresh.go +++ b/cache/auto_refresh.go @@ -286,6 +286,7 @@ func (w *autoRefresh) sync(ctx context.Context) (err error) { item, ok := w.lruMap.Get(itemID) if !ok { logger.Debugf(ctx, "item with id [%v] not found in cache", itemID) + t.Stop() continue } updatedBatch, err := w.syncCb(ctx, Batch{itemWrapper{