Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianBland committed Jun 1, 2024
1 parent 86efc50 commit 4aabc65
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
6 changes: 5 additions & 1 deletion crates/blockchain-tree/src/externals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ pub struct TreeExternals<DB, C, E> {

impl<DB, C, E> TreeExternals<DB, C, E> {
/// Create new tree externals.
pub fn new(provider_factory: ProviderFactory<DB>, consensus: C, executor_factory: E) -> Self {
pub const fn new(
provider_factory: ProviderFactory<DB>,
consensus: C,
executor_factory: E,
) -> Self {
Self { provider_factory, consensus, executor_factory }
}
}
Expand Down
7 changes: 1 addition & 6 deletions crates/node/builder/src/launch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ use crate::{
BuilderContext, NodeBuilderWithComponents, NodeHandle,
};
use futures::{future, future::Either, stream, stream_select, StreamExt};
use reth_auto_seal_consensus::AutoSealConsensus;
use reth_beacon_consensus::{
hooks::{EngineHooks, PruneHook, StaticFileHook},
BeaconConsensusEngine, EthBeaconConsensus,
BeaconConsensusEngine,
};
use reth_blockchain_tree::{
noop::NoopBlockchainTree, BlockchainTree, BlockchainTreeConfig, ShareableBlockchainTree,
TreeExternals,
};
use reth_consensus::Consensus;
use reth_exex::{ExExContext, ExExHandle, ExExManager, ExExManagerHandle};
use reth_network::NetworkEvents;
use reth_node_api::{FullNodeComponents, FullNodeTypes};
Expand All @@ -29,9 +27,6 @@ use reth_node_core::{
};
use reth_node_events::{cl::ConsensusLayerHealthEvents, node};

#[cfg(feature = "optimism")]
use reth_optimism_consensus::OptimismBeaconConsensus;

use reth_primitives::format_ether;
use reth_provider::{providers::BlockchainProvider, CanonStateSubscriptions};
use reth_rpc_engine_api::EngineApi;
Expand Down
5 changes: 1 addition & 4 deletions crates/stages/stages/src/stages/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ use reth_stages_api::{
BlockErrorKind, ExecInput, ExecOutput, Stage, StageError, UnwindInput, UnwindOutput,
};
use reth_storage_errors::provider::ProviderError;
use std::{
sync::Arc,
task::{ready, Context, Poll},
};
use std::task::{ready, Context, Poll};
use tracing::*;

/// The headers stage.
Expand Down

0 comments on commit 4aabc65

Please sign in to comment.