Skip to content

Commit

Permalink
Remove the now unused thread pool
Browse files Browse the repository at this point in the history
  • Loading branch information
steviez committed Mar 6, 2024
1 parent d71f084 commit fb73572
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions ledger/src/blockstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ use {
itertools::Itertools,
log::*,
rand::Rng,
rayon::{
iter::{IntoParallelIterator, ParallelIterator},
ThreadPool,
},
rayon::iter::{IntoParallelIterator, ParallelIterator},
rocksdb::{DBRawIterator, LiveFile},
solana_accounts_db::hardened_unpack::{
unpack_genesis_archive, MAX_GENESIS_ARCHIVE_UNPACKED_SIZE,
Expand Down Expand Up @@ -94,16 +91,6 @@ pub use {
rocksdb::properties as RocksProperties,
};

// get_max_thread_count to match number of threads in the old code.
// see: https://github.com/solana-labs/solana/pull/24853
lazy_static! {
static ref PAR_THREAD_POOL_ALL_CPUS: ThreadPool = rayon::ThreadPoolBuilder::new()
.num_threads(num_cpus::get())
.thread_name(|i| format!("solBstoreAll{i:02}"))
.build()
.unwrap();
}

pub const MAX_REPLAY_WAKE_UP_SIGNALS: usize = 1;
pub const MAX_COMPLETED_SLOTS_IN_CHANNEL: usize = 100_000;

Expand Down

0 comments on commit fb73572

Please sign in to comment.