Fix windows build by removing sys-info (#8860)

Doesn't build for windows.
This commit is contained in:
sakridge
2020-03-16 12:53:13 -07:00
committed by GitHub
parent 0641244378
commit 7079559c2d
10 changed files with 25 additions and 25 deletions

View File

@ -754,6 +754,6 @@ fn get_db_options() -> Options {
options.create_if_missing(true);
options.create_missing_column_families(true);
// A good value for this is the number of cores on the machine
options.increase_parallelism(sys_info::cpu_num().unwrap() as i32);
options.increase_parallelism(num_cpus::get() as i32);
options
}