diff options
author | Keuin <[email protected]> | 2022-03-28 21:40:33 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-03-28 21:40:33 +0800 |
commit | 026f5839e2359d565229c05b768f8a7ed694bf4b (patch) | |
tree | 2495fe6397e5f1ff81eeee37b844387f1be45d4c /src/main.rs | |
parent | 2d3f83cb7f78706c1ba5af966afc5625037ab5ce (diff) |
Make `sqlite_thread_pool_size` configurable.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 8ada3a0..e5cb1bb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,7 +76,7 @@ async fn main() { let db = config.db_file.as_str(); info!(db, "Opening database..."); - let db: DbPool = database::open(db) + let db: DbPool = database::open(db, config.sqlite_thread_pool_size) .await.expect(&*format!("cannot open database {}", db)); info!("Spawning bot coroutine..."); |