We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c64cd23 + 39b0562 commit ff0547cCopy full SHA for ff0547c
lib/redis_client/cluster/node/base_topology.rb
@@ -54,7 +54,7 @@ def disconnect_from_unwanted_nodes(options)
54
def connect_to_new_nodes(options)
55
(options.keys - @clients.keys).each do |node_key|
56
option = options[node_key].merge(@client_options)
57
- config = ::RedisClient::Cluster::Node::Config.new(scale_read: !@primary_node_keys.include?(node_key), **option)
+ config = ::RedisClient::Cluster::Node::Config.new(scale_read: @replica_node_keys.include?(node_key), **option)
58
client = @pool.nil? ? config.new_client : config.new_pool(**@pool)
59
@clients[node_key] = client
60
end
0 commit comments