2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

DEV: Require rails_failover before global settings.

This commit is contained in:
Guo Xiang Tan 2020-05-20 16:06:40 +08:00
parent f7f436e536
commit 2f03a879f9
No known key found for this signature in database
GPG key ID: FBD110179AAC1F20
2 changed files with 4 additions and 2 deletions

View file

@ -6,8 +6,6 @@ if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
end
if ENV['RAILS_FAILOVER']
require 'rails_failover'
message_bus_keepalive_interval = MessageBus.keepalive_interval
RailsFailover::Redis.register_master_up_callback do