Skip to content

Commit

Permalink
chore: move to none() when in real code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Jul 2, 2024
1 parent a9c93ce commit 9483ce3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bin/reth/src/commands/debug_cmd/build_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl Command {
let tree = BlockchainTree::new(
tree_externals,
BlockchainTreeConfig::default(),
PruneModes::default(),
PruneModes::none(),
)?;
let blockchain_tree = Arc::new(ShareableBlockchainTree::new(tree));

Expand Down
2 changes: 1 addition & 1 deletion bin/reth/src/commands/debug_cmd/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl Command {
.await?;

let static_file_producer =
StaticFileProducer::new(provider_factory.clone(), PruneModes::default());
StaticFileProducer::new(provider_factory.clone(), PruneModes::none());

// Configure the pipeline
let fetch_client = network.fetch_client().await?;
Expand Down
4 changes: 2 additions & 2 deletions bin/reth/src/commands/debug_cmd/replay_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl Command {
let tree = BlockchainTree::new(
tree_externals,
BlockchainTreeConfig::default(),
PruneModes::default(),
PruneModes::none(),
)?;
let blockchain_tree = Arc::new(ShareableBlockchainTree::new(tree));

Expand Down Expand Up @@ -148,7 +148,7 @@ impl Command {
network_client,
Pipeline::builder().build(
provider_factory.clone(),
StaticFileProducer::new(provider_factory.clone(), PruneModes::default()),
StaticFileProducer::new(provider_factory.clone(), PruneModes::none()),
),
blockchain_db.clone(),
Box::new(ctx.task_executor.clone()),
Expand Down
9 changes: 2 additions & 7 deletions crates/storage/provider/src/providers/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,7 @@ impl<DB> ProviderFactory<DB> {
chain_spec: Arc<ChainSpec>,
static_file_provider: StaticFileProvider,
) -> Self {
Self {
db: Arc::new(db),
chain_spec,
static_file_provider,
prune_modes: PruneModes::default(),
}
Self { db: Arc::new(db), chain_spec, static_file_provider, prune_modes: PruneModes::none() }
}

/// Enables metrics on the static file provider.
Expand Down Expand Up @@ -102,7 +97,7 @@ impl ProviderFactory<DatabaseEnv> {
db: Arc::new(init_db(path, args).map_err(RethError::msg)?),
chain_spec,
static_file_provider,
prune_modes: PruneModes::default(),
prune_modes: PruneModes::none(),
})
}
}
Expand Down

0 comments on commit 9483ce3

Please sign in to comment.