From 6cf7d3e0a7f1496dea94c13ecf4392e748942385 Mon Sep 17 00:00:00 2001 From: joshieDo <93316087+joshieDo@users.noreply.github.com> Date: Thu, 9 May 2024 19:28:55 +0100 Subject: [PATCH] cargo docs --- crates/config/src/config.rs | 8 ++++---- crates/stages/src/sets.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/config/src/config.rs b/crates/config/src/config.rs index 5a1b2f79d2e0..aa8b7ee09ab1 100644 --- a/crates/config/src/config.rs +++ b/crates/config/src/config.rs @@ -97,10 +97,10 @@ pub struct StageConfig { } impl StageConfig { - /// The highest threshold (in number of blocks) for switching between incremental - /// and full calculations across [`super::MerkleStage`], [`super::AccountHashingStage`] and - /// [`super::StorageHashingStage`]. This is required to figure out if can prune or not - /// changesets on subsequent pipeline runs. + /// The highest threshold (in number of blocks) for switching between incremental and full + /// calculations across `MerkleStage`, `AccountHashingStage` and `StorageHashingStage`. This is + /// required to figure out if can prune or not changesets on subsequent pipeline runs during + /// `ExecutionStage` pub fn execution_external_clean_threshold(&self) -> u64 { self.merkle .clean_threshold diff --git a/crates/stages/src/sets.rs b/crates/stages/src/sets.rs index 9dce13aabb77..f13c6180b710 100644 --- a/crates/stages/src/sets.rs +++ b/crates/stages/src/sets.rs @@ -17,7 +17,7 @@ //! # use reth_provider::StaticFileProviderFactory; //! # use reth_provider::test_utils::create_test_provider_factory; //! # use reth_static_file::StaticFileProducer; -//! # use reth_config::config::EtlConfig; +//! # use reth_config::config::StageConfig; //! # use reth_evm::execute::BlockExecutorProvider; //! //! # fn create(exec: impl BlockExecutorProvider) { @@ -30,7 +30,7 @@ //! ); //! // Build a pipeline with all offline stages. //! let pipeline = Pipeline::builder() -//! .add_stages(OfflineStages::new(exec, EtlConfig::default())) +//! .add_stages(OfflineStages::new(exec, StageConfig::default(), None)) //! .build(provider_factory, static_file_producer); //! //! # }