Skip to content

Commit

Permalink
remove parallel feature
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Sep 26, 2024
1 parent d5ccdbc commit a55dc13
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion crates/blockchain-tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ reth-execution-types.workspace = true
reth-stages-api.workspace = true
reth-trie = { workspace = true, features = ["metrics"] }
reth-trie-db = { workspace = true, features = ["metrics"] }
reth-trie-parallel = { workspace = true, features = ["parallel"] }
reth-trie-parallel.workspace = true
reth-network.workspace = true
reth-consensus.workspace = true
reth-node-types.workspace = true
Expand Down
10 changes: 3 additions & 7 deletions crates/trie/parallel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ tracing.workspace = true
# misc
thiserror.workspace = true
derive_more.workspace = true

# `parallel` feature
rayon = { workspace = true, optional = true }
itertools = { workspace = true, optional = true }
rayon.workspace = true
itertools.workspace = true

# `metrics` feature
reth-metrics = { workspace = true, optional = true }
Expand All @@ -55,11 +53,9 @@ proptest.workspace = true
proptest-arbitrary-interop.workspace = true

[features]
default = ["metrics", "parallel"]
default = ["metrics"]
metrics = ["reth-metrics", "dep:metrics", "reth-trie/metrics"]
parallel = ["rayon", "itertools"]

[[bench]]
name = "root"
required-features = ["parallel"]
harness = false
1 change: 0 additions & 1 deletion crates/trie/parallel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ pub use storage_root_targets::StorageRootTargets;
pub mod stats;

/// Implementation of parallel state root computation.
#[cfg(feature = "parallel")]
pub mod parallel_root;

/// Parallel state root metrics.
Expand Down
1 change: 0 additions & 1 deletion crates/trie/parallel/src/storage_root_targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ impl IntoIterator for StorageRootTargets {
}
}

#[cfg(feature = "parallel")]
impl rayon::iter::IntoParallelIterator for StorageRootTargets {
type Iter = rayon::collections::hash_map::IntoIter<B256, PrefixSet>;
type Item = (B256, PrefixSet);
Expand Down

0 comments on commit a55dc13

Please sign in to comment.