mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
parameterize number of mysql connections
This commit is contained in:
1 parent
5b2a139da3
commit
ed3554aeb0
1 file changed
+1
-1
@@ -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?;
|
||||
|
||||
|
||||
Reference in new issue
Block a user