default pool size2

This commit is contained in:
Sami J. Mäkinen 2021-09-19 13:05:43 +03:00
parent 483273389e
commit 403da19d0e
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 {