diff --git a/lib/sidekiq/util.rb b/lib/sidekiq/util.rb index f079e476..32336335 100644 --- a/lib/sidekiq/util.rb +++ b/lib/sidekiq/util.rb @@ -58,18 +58,5 @@ module Sidekiq arr.clear end - def want_a_hertz_donut? - # what's a hertz donut? - # punch! Hurts, don't it? - info = Sidekiq.redis {|c| c.info } - if info['connected_clients'].to_i > 1000 && info['hz'].to_i >= 10 - Sidekiq.logger.warn { "Your Redis `hz` setting is too high at #{info['hz']}. See mperham/sidekiq#2431. Set it to 3 in #{info[:config_file]}" } - true - else - Sidekiq.logger.debug { "Redis hz: #{info['hz']}. Client count: #{info['connected_clients']}" } - false - end - end - end end diff --git a/test/test_util.rb b/test/test_util.rb index aea1c0cf..19bc601d 100644 --- a/test/test_util.rb +++ b/test/test_util.rb @@ -6,11 +6,7 @@ class TestUtil < Sidekiq::Test include Sidekiq::Util end - def test_hertz_donut - obj = Helpers.new - output = capture_logging(Logger::DEBUG) do - assert_equal false, obj.want_a_hertz_donut? - end - assert_includes output, "hz: 10" + def test_nothing_atm + assert true end end