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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue