Skip to content

Commit

Permalink
Not used
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Dec 27, 2023
1 parent 169930f commit 38e4a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kredis/connections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38e4a34

Please sign in to comment.