diff --git a/src/main.rs b/src/main.rs index 8674e1d..a50d032 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,7 @@ async fn main() -> Result<(), std::io::Error> { )); let configuration = get_configuration().expect("Failed to read configuration."); let connection_pool = PgPoolOptions::new() - .acquire_timeout(std::time::Duration::from_secs(15)) + .acquire_timeout(std::time::Duration::from_secs(2)) .connect_lazy_with(configuration.database.with_db()); let listener = std::net::TcpListener::bind(format!(