lib/twitch/bot/memory/redis.rb in twitch-bot-5.0.0 vs lib/twitch/bot/memory/redis.rb in twitch-bot-5.0.1
- old
+ new
@@ -25,10 +25,10 @@
private
attr_reader :client, :redis
def connect_db
- url = redis_config_url || ENV["REDIS_URL"]
+ url = ENV["REDIS_URL"] || redis_config_url
::Redis.new(url: url)
end
def redis_config_url
config = client.config