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

Handle edge case where namespace is set in options, not hash

This commit is contained in:
Mike Perham 2013-01-26 11:27:46 -08:00
parent cea55197e7
commit 9e15a9ddfb

View file

@ -69,7 +69,7 @@ module Sidekiq
def self.redis=(hash) def self.redis=(hash)
if hash.is_a?(Hash) if hash.is_a?(Hash)
@redis = RedisConnection.create(hash) @redis = RedisConnection.create(hash)
options[:namespace] = hash[:namespace] options[:namespace] ||= hash[:namespace]
elsif hash.is_a?(ConnectionPool) elsif hash.is_a?(ConnectionPool)
@redis = hash @redis = hash
else else