From c163145c160f4a56d6b03bf12994b3eedb62101c Mon Sep 17 00:00:00 2001 From: Matt Larraz Date: Thu, 5 Jul 2018 00:09:27 -0500 Subject: [PATCH] Avoid use of stringify_keys --- lib/sidekiq-rate-limiter/fetch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq-rate-limiter/fetch.rb b/lib/sidekiq-rate-limiter/fetch.rb index 1343b02..876c956 100644 --- a/lib/sidekiq-rate-limiter/fetch.rb +++ b/lib/sidekiq-rate-limiter/fetch.rb @@ -89,7 +89,7 @@ def server_rate worker_class = @message['class'] options = Object.const_get(worker_class).get_sidekiq_options rescue {} server_rate = options['rate'] || options['throttle'] || {} - @server_rate = server_rate.stringify_keys + @server_rate = server_rate.map { |k, v| [k.to_s, v] }.to_h end end