CHEFerise docker app to make it more efficient
This commit is contained in:
+1
-1
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user