1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
This commit is contained in:
John Cavalieri 2015-11-09 12:09:51 -06:00
parent d666ed6fd3
commit d7488364e9

View file

@ -247,8 +247,10 @@ module Sidekiq
end end
def redis_connection_and_namespace def redis_connection_and_namespace
namespace_suffix = namespace.blank? ? '' : "##{namespace}" @redis_connection_and_namespace ||= begin
"#{redis_connection}#{namespace_suffix}" namespace_suffix = namespace.blank? ? '' : "##{namespace}"
"#{redis_connection}#{namespace_suffix}"
end
end end
end end
end end