diff --git a/lib/sidekiq/web/helpers.rb b/lib/sidekiq/web/helpers.rb index 98ef0360..0b18e1db 100644 --- a/lib/sidekiq/web/helpers.rb +++ b/lib/sidekiq/web/helpers.rb @@ -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