PERF: Don't allow a single user to monopolize the defer queue (#25593)

This commit is contained in:
Daniel Waterworth
2024-02-07 13:47:50 -06:00
committed by GitHub
parent 67229a7739
commit 30922855f2
5 changed files with 54 additions and 10 deletions

View File

@ -74,7 +74,7 @@ end
RSpec.describe WorkQueue::FairQueue do
subject(:queue) do
WorkQueue::FairQueue.new(global_limit) { WorkQueue::BoundedQueue.new(per_key_limit) }
WorkQueue::FairQueue.new(:key, global_limit) { WorkQueue::BoundedQueue.new(per_key_limit) }
end
let(:global_limit) { 5 }