Skip to content

Commit

Permalink
Raise pool timeout
Browse files Browse the repository at this point in the history
Maybe 2 secs is a bit too low for this DigitalOcean setup?
I am not sure this will work...
  • Loading branch information
ftassi committed Sep 20, 2023
1 parent 6df960f commit 96dbf1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(2))
.acquire_timeout(std::time::Duration::from_secs(15))
.connect_lazy_with(configuration.database.with_db());

let listener = std::net::TcpListener::bind(format!(
Expand Down

0 comments on commit 96dbf1d

Please sign in to comment.