Skip to content

Commit

Permalink
perf(cache): Use AddRateLimited for batch enqueue
Browse files Browse the repository at this point in the history
  • Loading branch information
pingsutw committed Apr 12, 2024
1 parent c7d1463 commit 688702a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flytestdlib/cache/auto_refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (w *autoRefresh) enqueueBatches(ctx context.Context) error {

for _, batch := range batches {
b := batch
w.workqueue.Add(&b)
w.workqueue.AddRateLimited(&b)
}

return nil
Expand Down

0 comments on commit 688702a

Please sign in to comment.