From 38e4a34fe300c81dc6aa59aed4f0405eac2d6d27 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 26 Dec 2023 21:22:47 -0800 Subject: [PATCH] Not used --- lib/kredis/connections.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kredis/connections.rb b/lib/kredis/connections.rb index 3827325..2f1e0ab 100644 --- a/lib/kredis/connections.rb +++ b/lib/kredis/connections.rb @@ -13,7 +13,7 @@ module Kredis::Connections def configured_for(name) connections[name] ||= Kredis.instrument :meta, message: "Connected to #{name}" do if configurator.root.join("config/redis/#{name}.yml").exist? - redis = connector.call configurator.config_for("redis/#{name}") + connector.call configurator.config_for("redis/#{name}") else Redis.new url: ENV.fetch("REDIS_URL", DEFAULT_REDIS_URL), timeout: DEFAULT_REDIS_TIMEOUT end