mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
Revert "cli: integrate TaskExecutor" (#1329)
This commit is contained in:
committed by
GitHub
parent
49292091dd
commit
48d121dc54
@ -24,7 +24,6 @@ reth-primitives = { path = "../../crates/primitives" }
|
||||
reth-provider = { path = "../../crates/storage/provider", features = ["test-utils"] }
|
||||
reth-net-nat = { path = "../../crates/net/nat" }
|
||||
reth-interfaces = { path = "../interfaces", optional = true }
|
||||
reth-tasks= { path = "../../crates/tasks" }
|
||||
|
||||
# io
|
||||
serde = "1.0"
|
||||
|
||||
@ -13,7 +13,6 @@ use reth_network::{
|
||||
};
|
||||
use reth_primitives::{ChainSpec, NodeRecord};
|
||||
use reth_provider::ShareableDatabase;
|
||||
use reth_tasks::TaskExecutor;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Configuration for the reth node.
|
||||
@ -29,7 +28,6 @@ pub struct Config {
|
||||
|
||||
impl Config {
|
||||
/// Initializes network config from read data
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn network_config<DB: Database>(
|
||||
&self,
|
||||
db: DB,
|
||||
@ -38,7 +36,6 @@ impl Config {
|
||||
bootnodes: Option<Vec<NodeRecord>>,
|
||||
nat_resolution_method: reth_net_nat::NatResolver,
|
||||
peers_file: Option<PathBuf>,
|
||||
executor: Option<TaskExecutor>,
|
||||
) -> NetworkConfig<ShareableDatabase<DB>> {
|
||||
let peer_config = self
|
||||
.peers
|
||||
@ -52,7 +49,6 @@ impl Config {
|
||||
.peer_config(peer_config)
|
||||
.discovery(discv4)
|
||||
.chain_spec(chain_spec)
|
||||
.executor(executor)
|
||||
.set_discovery(disable_discovery)
|
||||
.build(Arc::new(ShareableDatabase::new(db)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user