From 8c0262a8ff8e595e95563627e97ec5b387db650e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20G=C4=99bala?= Date: Fri, 11 Oct 2024 20:22:13 +0200 Subject: [PATCH] Fix issues with nested Sets (#233) --- .../neo4j/driver/internal/cluster/routing_table_handler_impl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby/neo4j/driver/internal/cluster/routing_table_handler_impl.rb b/ruby/neo4j/driver/internal/cluster/routing_table_handler_impl.rb index 42ed2437..84a1e102 100644 --- a/ruby/neo4j/driver/internal/cluster/routing_table_handler_impl.rb +++ b/ruby/neo4j/driver/internal/cluster/routing_table_handler_impl.rb @@ -63,7 +63,7 @@ def fresh_cluster_composition_fetched(composition_lookup_result) addresses_to_retain = @routing_table_registry.all_servers.map(&:unicast_stream).reduce(&:+) composition_lookup_result.resolved_initial_routers&.then do |addresses| - addresses_to_retain << addresses + addresses_to_retain.merge(addresses) end @connection_pool.retain_all(addresses_to_retain)