From ef6043880ee492e6c8fd7672d0e36ca81a62cfc9 Mon Sep 17 00:00:00 2001 From: Gabriel Mazetto Date: Fri, 27 Nov 2015 14:32:32 -0200 Subject: Specs for RedisConfig Make sure :url is not present on RedisConfig.params after parsing --- lib/gitlab/redis.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab/redis.rb') diff --git a/lib/gitlab/redis.rb b/lib/gitlab/redis.rb index 8050b28f33a..8c277d97f1a 100644 --- a/lib/gitlab/redis.rb +++ b/lib/gitlab/redis.rb @@ -54,12 +54,12 @@ module Gitlab if redis_uri.scheme == 'unix' # Redis::Store does not handle Unix sockets well, so let's do it for them config[:path] = redis_uri.path - config.delete(:url) else redis_hash = ::Redis::Store::Factory.extract_host_options_from_uri(redis_uri) config.merge!(redis_hash) end + config.delete(:url) config end -- cgit v1.2.3