Revert "cli: integrate TaskExecutor" (#1329)

This commit is contained in:
Georgios Konstantopoulos
2023-02-13 19:28:19 -08:00
committed by GitHub
parent 49292091dd
commit 48d121dc54
12 changed files with 35 additions and 148 deletions

View File

@ -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"

View File

@ -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)))
}