lib/redis_cluster/node.rb in redis_cluster-0.3.1 vs lib/redis_cluster/node.rb in redis_cluster-0.3.2
- old
+ new
@@ -39,11 +39,11 @@
def connection
@connection ||= self.class.redis(options)
end
def self.redis(options)
- extra_options = {timeout: Configuration::DEFAULT_TIMEOUT, driver: 'hiredis'.freeze}
- ::Redis.new(options.merge(extra_options))
+ default_options = {timeout: Configuration::DEFAULT_TIMEOUT, driver: 'hiredis'.freeze}
+ ::Redis.new(default_options.merge(options))
end
end # end Node
end