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

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Sep 25, 2023
1 parent d3e61ed commit 9910612
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cache/auto_refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (w *autoRefresh) enqueueBatches(ctx context.Context) error {

for _, batch := range batches {
for _, b := range batch {
logger.Debugf(ctx, "Enqueuing batch with id: %v", b.GetID())
logger.Infof(ctx, "Enqueuing batch with id: %v", b.GetID())
w.workqueue.Add(b.GetID())
}
}
Expand Down Expand Up @@ -277,10 +277,12 @@ func (w *autoRefresh) sync(ctx context.Context) (err error) {
default:
itemID, shutdown := w.workqueue.Get()
if shutdown {
logger.Infof(ctx, "Shutting down worker")

Check warning on line 280 in cache/auto_refresh.go

View check run for this annotation

Codecov / codecov/patch

cache/auto_refresh.go#L280

Added line #L280 was not covered by tests
return nil
}

t := w.metrics.SyncLatency.Start()
logger.Infof(ctx, "Syncing item with id [%v]", itemID)
item, ok := w.lruMap.Get(itemID)
if !ok {
logger.Debugf(ctx, "item with id [%v] not found in cache", itemID)
Expand Down

0 comments on commit 9910612

Please sign in to comment.