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

@@ -20,6 +20,7 @@ fs_extra = "1.1.0"
itertools = "0.9.0"
libc = "0.2.67"
log = { version = "0.4.8" }
num_cpus = "1.0.0"
rand = "0.6.5"
rand_chacha = "0.1.1"
rayon = "1.3.0"
@@ -40,7 +41,6 @@ solana-runtime = { path = "../runtime", version = "1.1.0" }
solana-sdk = { path = "../sdk", version = "1.1.0" }
solana-stake-program = { path = "../programs/stake", version = "1.1.0" }
solana-vote-program = { path = "../programs/vote", version = "1.1.0" }
sys-info = "0.5.10"
symlink = "0.1.0"
tar = "0.4.26"
thiserror = "1.0"

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
}