mirror of
				https://github.com/discourse/discourse.git
				synced 2025-02-25 18:55:32 -06:00 
			
		
		
		
	Remove unused code for Redis Sentinel.
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user