use resdis configuration for activity log

This commit is contained in:
Sebastian Jambor 2023-01-09 21:46:58 +01:00
parent d73bf5770d
commit e90505cfdf
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
class ActivityLogPublisher
def initialize
@redis = Redis.new
@redis = RedisConfiguration.new.connection
end
def publish(log_event)

View file

@ -3,7 +3,7 @@ require 'redis'
class ActivityLogSubscriber
def start
redis = Redis.new
redis = RedisConfiguration.new.connection
redis.subscribe('activity_log') do |on|
on.message do |channel, message|