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:
parent
e2a6227de7
commit
89fcf0c145
1 changed files with 4 additions and 2 deletions
|
@ -148,8 +148,10 @@ module Sidekiq
|
||||||
end
|
end
|
||||||
|
|
||||||
def redis_connection
|
def redis_connection
|
||||||
attrs = Sidekiq.redis { |conn| conn.connection }
|
Sidekiq.redis do |conn|
|
||||||
"redis://#{attrs[:location]}/#{attrs[:db]}"
|
c = conn._client
|
||||||
|
"redis://#{c.location}/#{c.db}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def namespace
|
def namespace
|
||||||
|
|
Loading…
Add table
Reference in a new issue