DEV: Fix incorrect messagebus redis config for rails_failover.

This commit is contained in:
Guo Xiang Tan 2020-06-09 17:05:14 +08:00
parent c35649ccf1
commit edc940ce3e
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20

View File

@ -200,8 +200,8 @@ class GlobalSetting
if message_bus_redis_slave_host && message_bus_redis_slave_port
if ENV["REDIS_RAILS_FAILOVER"]
c[:replica_host] = redis_slave_host
c[:replica_port] = redis_slave_port
c[:replica_host] = message_bus_redis_slave_host
c[:replica_port] = message_bus_redis_slave_port
c[:connector] = RailsFailover::Redis::Connector
else
c[:slave_host] = message_bus_redis_slave_host