From ddd79affecd68a08532969cffc62d9b0fa175572 Mon Sep 17 00:00:00 2001 From: Sojan Date: Fri, 25 Nov 2022 16:35:59 +0300 Subject: [PATCH] chore: debug heorku redis issue --- config/initializers/01_redis.rb | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/config/initializers/01_redis.rb b/config/initializers/01_redis.rb index 25084d9ec..b35757853 100644 --- a/config/initializers/01_redis.rb +++ b/config/initializers/01_redis.rb @@ -1,16 +1,14 @@ -Rails.application.reloader.to_prepare do - # Alfred - # Add here as you use it for more features - # Used for Round Robin, Conversation Emails & Online Presence - $alfred = ConnectionPool::Wrapper.new(size: 5, timeout: 3) do - redis = Rails.env.test? ? MockRedis.new : Redis.new(Redis::Config.app) - Redis::Namespace.new('alfred', redis: redis, warning: true) - end - - # Velma : Determined protector - # used in rack attack - $velma = ConnectionPool::Wrapper.new(size: 5, timeout: 3) do - redis = Rails.env.test? ? MockRedis.new : Redis.new(Redis::Config.app) - Redis::Namespace.new('velma', redis: redis, warning: true) - end +# Alfred +# Add here as you use it for more features +# Used for Round Robin, Conversation Emails & Online Presence +$alfred = ConnectionPool::Wrapper.new(size: 5, timeout: 3) do + redis = Rails.env.test? ? MockRedis.new : Redis.new(Redis::Config.app) + Redis::Namespace.new('alfred', redis: redis, warning: true) +end + +# Velma : Determined protector +# used in rack attack +$velma = ConnectionPool::Wrapper.new(size: 5, timeout: 3) do + redis = Rails.env.test? ? MockRedis.new : Redis.new(Redis::Config.app) + Redis::Namespace.new('velma', redis: redis, warning: true) end