mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
Revert "FIX: update Redis gem to version 4.1.3 (#8197)"
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
This commit is contained in:
16
lib/freedom_patches/redis.rb
Normal file
16
lib/freedom_patches/redis.rb
Normal file
@ -0,0 +1,16 @@
|
||||
# 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
|
Reference in New Issue
Block a user