Merge pull request #33 from sjm42/fix1

default pool size2
This commit is contained in:
Raphaël Thériault 2022-02-17 22:47:35 -08:00 committed by GitHub
commit a471bff45f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ impl Default for Config {
.expect("Can't convert database path to string")
.to_owned()
};
let pool_size = std::cmp::max(1, num_cpus::get() as u32 / 2);
let pool_size = std::cmp::max(2, num_cpus::get() as u32 / 2);
let files_dir = get_data_dir().join("files");
Self {