diff --git a/app/lib/three_scale/redis_config.rb b/app/lib/three_scale/redis_config.rb index 5810165a6b..623a5aaa58 100644 --- a/app/lib/three_scale/redis_config.rb +++ b/app/lib/three_scale/redis_config.rb @@ -6,7 +6,7 @@ def initialize(redis_config = {}) raw_config = (redis_config || {}).symbolize_keys sentinels = raw_config.delete(:sentinels).presence raw_config.delete_if { |key, value| value.blank? } - set_pool_size(raw_config) + raw_config[:size] ||= raw_config.delete(:pool_size) if raw_config.key?(:pool_size) @config = ActiveSupport::OrderedOptions.new.merge(raw_config) config.sentinels = parse_sentinels(sentinels) if sentinels @@ -56,11 +56,5 @@ def parse_sentinels(sentinels) parsed_sentinel end end - - def set_pool_size(config) - return if config[:size].present? - - config[:size] = config.delete(:pool_size) if config.key?(:pool_size) - end end end