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:
parent
cea55197e7
commit
9e15a9ddfb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue