Fix windows build by removing sys-info (#8860)
Doesn't build for windows.
This commit is contained in:
@@ -6,7 +6,7 @@ extern crate lazy_static;
|
||||
lazy_static! {
|
||||
// reduce the number of threads each pool is allowed to half the cpu core count, to avoid rayon
|
||||
// hogging cpu
|
||||
static ref MAX_RAYON_THREADS: usize = sys_info::cpu_num().unwrap() as usize / 2;
|
||||
static ref MAX_RAYON_THREADS: usize = num_cpus::get() as usize / 2;
|
||||
}
|
||||
|
||||
pub fn get_thread_count() -> usize {
|
||||
|
Reference in New Issue
Block a user