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

automerge
This commit is contained in:
Michael Vines
2020-03-19 18:14:01 -07:00
committed by GitHub
parent 58a36ce484
commit 7ae2464cf3
10 changed files with 25 additions and 25 deletions

View File

@@ -20,6 +20,7 @@ fs_extra = "1.1.0"
itertools = "0.8.2"
libc = "0.2.66"
log = { version = "0.4.8" }
num_cpus = "1.0.0"
rand = "0.6.5"
rand_chacha = "0.1.1"
rayon = "1.2.0"
@@ -40,7 +41,6 @@ solana-runtime = { path = "../runtime", version = "1.0.9" }
solana-sdk = { path = "../sdk", version = "1.0.9" }
solana-stake-program = { path = "../programs/stake", version = "1.0.9" }
solana-vote-program = { path = "../programs/vote", version = "1.0.9" }
sys-info = "0.5.9"
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
}