summaryrefslogtreecommitdiff
path: root/src/files.rs
diff options
context:
space:
mode:
authorjakka <jakkadoujin@gmail.com>2025-07-02 18:35:52 +0300
committerjakka <jakkadoujin@gmail.com>2025-07-02 18:35:52 +0300
commite38439f8012eabcd827c5abb7b7448a525feaf98 (patch)
tree6bdb5a9e45cd1262ccb9c6476d06ac9358fae3c2 /src/files.rs
parent7443b2547c2d68ccedf6ed7612d753c9ba91fa25 (diff)
added more connections for more threads
Diffstat (limited to 'src/files.rs')
-rw-r--r--src/files.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/files.rs b/src/files.rs
index a92a07a..8b089e8 100644
--- a/src/files.rs
+++ b/src/files.rs
@@ -229,7 +229,7 @@ mod tests {
#[test]
fn test_index_lots_of_files() {
let handler = Arc::new(AtomicBool::new(true));
- let pool = open_db(Some("temp3.db")).unwrap();
+ let pool = open_db(Some("temp3.db"), 10).unwrap();
index_files_recursively(Path::new("./testfiles"), &pool, handler).unwrap();
std::fs::remove_file("temp3.db").unwrap();
}
@@ -237,7 +237,7 @@ mod tests {
#[test]
fn test_reencode_lots_of_files() {
let handler = Arc::new(AtomicBool::new(true));
- let pool = open_db(Some("temp4.db")).unwrap();
+ let pool = open_db(Some("temp4.db"), 10).unwrap();
let temp = handler.clone();
index_files_recursively(Path::new("./testfiles"), &pool, temp).unwrap();
let conn = Database::new(pool.get().unwrap());