mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(clippy): make clippy happy (#3090)
This commit is contained in:
@ -12,10 +12,7 @@ use reth_rpc_builder::{
|
||||
use reth_rpc_engine_api::EngineApi;
|
||||
use reth_tasks::TokioTaskExecutor;
|
||||
use reth_transaction_pool::test_utils::{testing_pool, TestPool};
|
||||
use std::{
|
||||
net::{Ipv4Addr, SocketAddr, SocketAddrV4},
|
||||
sync::Arc,
|
||||
};
|
||||
use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4};
|
||||
use tokio::sync::mpsc::unbounded_channel;
|
||||
|
||||
/// Localhost with port 0 so a free port is used.
|
||||
|
||||
@ -163,7 +163,6 @@ mod tests {
|
||||
use reth_primitives::{
|
||||
GOERLI, GOERLI_GENESIS, MAINNET, MAINNET_GENESIS, SEPOLIA, SEPOLIA_GENESIS,
|
||||
};
|
||||
use std::sync::Arc;
|
||||
|
||||
#[test]
|
||||
fn success_init_genesis_mainnet() {
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
//!
|
||||
//! ```
|
||||
//! # use std::sync::Arc;
|
||||
//! # use reth_db::mdbx::test_utils::create_test_rw_db;
|
||||
//! use reth_db::mdbx::test_utils::create_test_rw_db;
|
||||
//! # use reth_downloaders::bodies::bodies::BodiesDownloaderBuilder;
|
||||
//! # use reth_downloaders::headers::reverse_headers::ReverseHeadersDownloaderBuilder;
|
||||
//! # use reth_interfaces::consensus::Consensus;
|
||||
@ -43,7 +43,7 @@
|
||||
//! # db.clone()
|
||||
//! # );
|
||||
//! # let (tip_tx, tip_rx) = watch::channel(H256::default());
|
||||
//! # let factory = Factory::new(Arc::new(MAINNET.clone()));
|
||||
//! # let factory = Factory::new(MAINNET.clone());
|
||||
//! // Create a pipeline that can fully sync
|
||||
//! # let pipeline =
|
||||
//! Pipeline::builder()
|
||||
|
||||
@ -14,10 +14,9 @@
|
||||
//! # use reth_stages::sets::{OfflineStages};
|
||||
//! # use reth_revm::Factory;
|
||||
//! # use reth_primitives::MAINNET;
|
||||
//! # use std::sync::Arc;
|
||||
//! use reth_db::mdbx::test_utils::create_test_rw_db;
|
||||
//!
|
||||
//! # let factory = Factory::new(Arc::new(MAINNET.clone()));
|
||||
//! # let factory = Factory::new(MAINNET.clone());
|
||||
//! # let db = create_test_rw_db();
|
||||
//! // Build a pipeline with all offline stages.
|
||||
//! # let pipeline =
|
||||
@ -29,9 +28,8 @@
|
||||
//! # use reth_stages::{StageSet, sets::OfflineStages};
|
||||
//! # use reth_revm::Factory;
|
||||
//! # use reth_primitives::MAINNET;
|
||||
//! # use std::sync::Arc;
|
||||
//! // Build a pipeline with all offline stages and a custom stage at the end.
|
||||
//! # let factory = Factory::new(Arc::new(MAINNET.clone()));
|
||||
//! # let factory = Factory::new(MAINNET.clone());
|
||||
//! Pipeline::builder()
|
||||
//! .add_stages(
|
||||
//! OfflineStages::new(factory).builder().add_stage(MyCustomStage)
|
||||
|
||||
Reference in New Issue
Block a user