From b71061480f56928c389bf587db5b07c9e3084d01 Mon Sep 17 00:00:00 2001 From: Pierpaolo Follia Date: Mon, 6 Jan 2025 15:26:33 +0100 Subject: [PATCH] Fix silly bug in pool creation --- lib/src/routing/connection_registry.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/routing/connection_registry.rs b/lib/src/routing/connection_registry.rs index 3fe2ece..f270116 100644 --- a/lib/src/routing/connection_registry.rs +++ b/lib/src/routing/connection_registry.rs @@ -94,7 +94,10 @@ impl ConnectionRegistry { if registry.contains_key(server) { continue; } - registry.insert(server.clone(), create_pool(&self.config).await?); + registry.insert(server.clone(), create_pool(&Config { + uri: format!("{}:{}", server.address, server.port), + ..self.config.clone() + }).await?); } registry.retain(|k, _| servers.contains(k)); let _ = self