mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 02:05:30 +00:00
http_private: add config field db_connections_per_worker
This commit is contained in:
parent
b2a3c034b0
commit
26cd34f10a
2 changed files with 3 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ async fn run_app(
|
|||
);
|
||||
|
||||
let pool = MySqlPoolOptions::new()
|
||||
.max_connections(5)
|
||||
.max_connections(config.db_connections_per_worker)
|
||||
.connect(&db_url)
|
||||
.await?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue