Remove unused code for Redis Sentinel.

This commit is contained in:
Guo Xiang Tan 2017-10-05 14:53:03 +08:00
parent a25851032a
commit 5dc4b469be
1 changed files with 0 additions and 7 deletions

View File

@ -118,13 +118,6 @@ class GlobalSetting
c[:db] = redis_db if redis_db != 0
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
end
end