Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Sep 26, 2023
1 parent 5ea45af commit d4ae3ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cache/auto_refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d4ae3ad

Please sign in to comment.