Skip to content

Commit

Permalink
Remove multithreaded writes to the same Array when using JRuby, fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Oct 21, 2021
1 parent 1f05bd6 commit bd3f200
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/sidekiq/fetch.rb
Expand Up @@ -79,9 +79,10 @@ def queues_cmd
if @strictly_ordered_queues
@queues
else
queues = @queues.shuffle!.uniq
queues << TIMEOUT
queues
permute = @queues.shuffle
permute.uniq!
permute << TIMEOUT
permute
end
end
end
Expand Down

0 comments on commit bd3f200

Please sign in to comment.