From ed3554aeb05244cd55d4b7edd1a8053b2737f4e5 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 11 Aug 2022 03:55:46 -0400 Subject: [PATCH] parameterize number of mysql connections --- crates/service/storyteller_web/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/service/storyteller_web/src/main.rs b/crates/service/storyteller_web/src/main.rs index 9a6c83263b..be16344dad 100644 --- a/crates/service/storyteller_web/src/main.rs +++ b/crates/service/storyteller_web/src/main.rs @@ -185,7 +185,7 @@ async fn main() -> AnyhowResult<()> { DEFAULT_MYSQL_CONNECTION_STRING); let pool = MySqlPoolOptions::new() - .max_connections(5) + .max_connections(easyenv::get_env_num("MYSQL_MAX_CONNECTIONS", 5)?) .connect(&db_connection_string) .await?;