1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Avoid r-n deprecation message, fixes #3716

This commit is contained in:
Mike Perham 2018-01-11 07:12:29 -08:00
parent e2a6227de7
commit 89fcf0c145

View file

@ -148,8 +148,10 @@ module Sidekiq
end
def redis_connection
attrs = Sidekiq.redis { |conn| conn.connection }
"redis://#{attrs[:location]}/#{attrs[:db]}"
Sidekiq.redis do |conn|
c = conn._client
"redis://#{c.location}/#{c.db}"
end
end
def namespace