mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 04:34:13 -06:00
Remove unused code for Redis Sentinel.
This commit is contained in:
parent
a25851032a
commit
5dc4b469be
@ -118,13 +118,6 @@ class GlobalSetting
|
|||||||
c[:db] = redis_db if redis_db != 0
|
c[:db] = redis_db if redis_db != 0
|
||||||
c[:db] = 1 if Rails.env == "test"
|
c[:db] = 1 if Rails.env == "test"
|
||||||
|
|
||||||
if redis_sentinels.present?
|
|
||||||
c[:sentinels] = redis_sentinels.split(",").map do |address|
|
|
||||||
host, port = address.split(":")
|
|
||||||
{ host: host, port: port }
|
|
||||||
end.to_a
|
|
||||||
end
|
|
||||||
|
|
||||||
c.freeze
|
c.freeze
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user