From f41874c2498e96d933eee242489622602fd2e2a5 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Sat, 5 Feb 2022 13:19:50 -0800 Subject: [PATCH] talk! --- src/pool.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pool.rs b/src/pool.rs index 7f31f77..57a7b7e 100644 --- a/src/pool.rs +++ b/src/pool.rs @@ -47,8 +47,8 @@ impl ManageConnection for ServerPool { /// Attempts to create a new connection. async fn connect(&self) -> Result { + println!(">> Getting new connection from the pool"); let address = self.replica_pool.get(); - // println!(">> Getting connetion from pool"); match Server::startup( &address.host, @@ -107,9 +107,7 @@ impl ManageConnection for ServerPool { /// many sharded primaries or replicas. #[derive(Clone)] pub struct ReplicaPool { - // replicas: Vec>, addresses: Vec
, - // user: User, round_robin: Counter, banlist: BanList, }