Skip to content

Commit

Permalink
Avoid use of stringify_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mlarraz committed Jul 5, 2018
1 parent 9750846 commit c163145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq-rate-limiter/fetch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c163145

Please sign in to comment.