CHEFerise docker app to make it more efficient

This commit is contained in:
Nick Bland
2021-11-16 15:50:00 +10:00
parent 0a31ae482b
commit e2c83c817b
2 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ async fn main() -> std::io::Result<()> {
let configuration = get_configuration().expect("Failed to read configuration data.");
// Configure connection to database for our startup
let connection_pool = PgPool::new()
let connection_pool = PgPoolOptions::new()
.connect_timeout(std::time::Duration::from_secs(2))
.connect(&configuration.database.connection_string())
.expect("Failed to connect to Postgres.");