summaryrefslogtreecommitdiff
path: root/lib/gitlab/sidekiq_cluster.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/sidekiq_cluster.rb')
-rw-r--r--lib/gitlab/sidekiq_cluster.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/sidekiq_cluster.rb b/lib/gitlab/sidekiq_cluster.rb
index d05c717d2fa..cc1bd282da8 100644
--- a/lib/gitlab/sidekiq_cluster.rb
+++ b/lib/gitlab/sidekiq_cluster.rb
@@ -111,7 +111,7 @@ module Gitlab
end
def self.count_by_queue(queues)
- queues.each_with_object(Hash.new(0)) { |element, hash| hash[element] += 1 }
+ queues.tally
end
def self.proc_details(counts)