This commit is contained in:
Lev Kokotov
2022-02-03 17:33:09 -08:00
parent 2114cb2a97
commit 00823287da

View File

@@ -32,6 +32,10 @@ impl ManageConnection for ServerPool {
/// Attempts to create a new connection.
async fn connect(&self) -> Result<Self::Connection, Self::Error> {
println!(">> Getting connetion from pool");
//
// TODO: Pick a random connection from a replica pool here.
//
Ok(Server::startup(
&self.host,
&self.port,