mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-28 03:06:29 +00:00
:)
This commit is contained in:
@@ -32,6 +32,10 @@ impl ManageConnection for ServerPool {
|
|||||||
/// Attempts to create a new connection.
|
/// Attempts to create a new connection.
|
||||||
async fn connect(&self) -> Result<Self::Connection, Self::Error> {
|
async fn connect(&self) -> Result<Self::Connection, Self::Error> {
|
||||||
println!(">> Getting connetion from pool");
|
println!(">> Getting connetion from pool");
|
||||||
|
|
||||||
|
//
|
||||||
|
// TODO: Pick a random connection from a replica pool here.
|
||||||
|
//
|
||||||
Ok(Server::startup(
|
Ok(Server::startup(
|
||||||
&self.host,
|
&self.host,
|
||||||
&self.port,
|
&self.port,
|
||||||
|
|||||||
Reference in New Issue
Block a user