From 00823287da6fbf0cb88bd4c38727bdd18fc399b8 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Thu, 3 Feb 2022 17:33:09 -0800 Subject: [PATCH] :) --- src/pool.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pool.rs b/src/pool.rs index 783d537..b2074a4 100644 --- a/src/pool.rs +++ b/src/pool.rs @@ -32,6 +32,10 @@ impl ManageConnection for ServerPool { /// Attempts to create a new connection. async fn connect(&self) -> Result { println!(">> Getting connetion from pool"); + + // + // TODO: Pick a random connection from a replica pool here. + // Ok(Server::startup( &self.host, &self.port,