diff --git a/lib/sidekiq.rb b/lib/sidekiq.rb index 0411dbe2..771be8f0 100644 --- a/lib/sidekiq.rb +++ b/lib/sidekiq.rb @@ -69,7 +69,7 @@ module Sidekiq def self.redis=(hash) if hash.is_a?(Hash) @redis = RedisConnection.create(hash) - options[:namespace] = hash[:namespace] + options[:namespace] ||= hash[:namespace] elsif hash.is_a?(ConnectionPool) @redis = hash else