diff --git a/src/main.rs b/src/main.rs index c512104..8e2d75b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,8 +19,7 @@ async fn main() -> Result<(), std::io::Error> { .await .expect("Failed to open listener"); - let pool = PgPool::connect(config.database.connection_string().expose_secret()) - .await + let pool = PgPool::connect_lazy(config.database.connection_string().expose_secret()) .expect("Failed to connect to Postgres"); run(listener, pool).await