mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
PERF: Don't allow a single user to monopolize the defer queue (#25593)
This commit is contained in:

committed by
GitHub

parent
67229a7739
commit
30922855f2
@ -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 }
|
||||
|
Reference in New Issue
Block a user