Skip to content

Commit

Permalink
Fixes initial topology (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
supercaracal authored Jan 23, 2025
2 parents c64cd23 + 39b0562 commit ff0547c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis_client/cluster/node/base_topology.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def disconnect_from_unwanted_nodes(options)
def connect_to_new_nodes(options)
(options.keys - @clients.keys).each do |node_key|
option = options[node_key].merge(@client_options)
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)
client = @pool.nil? ? config.new_client : config.new_pool(**@pool)
@clients[node_key] = client
end
Expand Down

0 comments on commit ff0547c

Please sign in to comment.