Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/redis/wrapper.rb')
-rw-r--r--lib/gitlab/redis/wrapper.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/redis/wrapper.rb b/lib/gitlab/redis/wrapper.rb
index c1f346ec7e4..bb231eec226 100644
--- a/lib/gitlab/redis/wrapper.rb
+++ b/lib/gitlab/redis/wrapper.rb
@@ -30,7 +30,7 @@ module Gitlab
end
def pool
- @pool ||= ConnectionPool.new(size: pool_size) { redis }
+ @pool ||= ConnectionPool.new(size: pool_size, name: store_name.underscore) { redis }
end
def pool_size
@@ -83,8 +83,6 @@ module Gitlab
"::Gitlab::Instrumentation::Redis::#{store_name}".constantize
end
- private
-
def redis
::Redis.new(params)
end