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

Don't hardcode URI scheme of redis connection url (#4839)

This commit is contained in:
j-sieg 2021-03-12 23:44:19 +08:00 committed by GitHub
parent 25ed7c7e39
commit 561f0bfae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,8 +166,7 @@ module Sidekiq
def redis_connection
Sidekiq.redis do |conn|
c = conn.connection
"redis://#{c[:location]}/#{c[:db]}"
conn.connection[:id]
end
end