mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 15:51:39 +08:00

This reverts commit ab74a50d857c6a0ac7e5c11f9d8ddd12ee5e1805. We really want to upgrade redis, but discovered some edge cases around failover we need to test. Holding off on the upgrade till a bit more testing happens
17 lines
371 B
Ruby
17 lines
371 B
Ruby
# frozen_string_literal: true
|
|
|
|
# https://github.com/redis/redis-rb/pull/591
|
|
class Redis
|
|
class Client
|
|
alias_method :old_initialize, :initialize
|
|
|
|
def initialize(options = {})
|
|
old_initialize(options)
|
|
|
|
if options.include?(:connector) && options[:connector].is_a?(Class)
|
|
@connector = options[:connector].new(@options)
|
|
end
|
|
end
|
|
end
|
|
end
|