DEV: Apply syntax_tree formatting to script/*

This commit is contained in:
David Taylor
2023-01-07 11:53:14 +00:00
parent ff508d1ae5
commit 436b3b392b
143 changed files with 8905 additions and 7353 deletions

View File

@ -2,17 +2,14 @@
require File.expand_path("../../config/environment", __FILE__)
queues = %w{default low ultra_low critical}.map { |name| Sidekiq::Queue.new(name) }.lazy.flat_map(&:lazy)
queues =
%w[default low ultra_low critical].map { |name| Sidekiq::Queue.new(name) }.lazy.flat_map(&:lazy)
stats = Hash.new(0)
queues.each do |j|
stats[j.klass] += 1
end
queues.each { |j| stats[j.klass] += 1 }
stats.sort_by { |a, b| -b }.each do |name, count|
puts "#{name}: #{count}"
end
stats.sort_by { |a, b| -b }.each { |name, count| puts "#{name}: #{count}" }
dupes = Hash.new([])
queues.each do |j|