Skip to content

Commit

Permalink
Fix silly bug in pool creation
Browse files Browse the repository at this point in the history
  • Loading branch information
madchicken committed Jan 6, 2025
1 parent 6d4cd66 commit b710614
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/routing/connection_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b710614

Please sign in to comment.