From 026f5839e2359d565229c05b768f8a7ed694bf4b Mon Sep 17 00:00:00 2001 From: Keuin Date: Mon, 28 Mar 2022 21:40:33 +0800 Subject: Make `sqlite_thread_pool_size` configurable. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') 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..."); -- cgit v1.2.3