mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-28 16:48:13 -05:00
chore: move builder to own module (#5899)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//! Support for customizing the node
|
||||
use super::{components::RethRpcServerHandles, ext::DefaultRethNodeCommandConfig};
|
||||
use super::cli::{components::RethRpcServerHandles, ext::DefaultRethNodeCommandConfig};
|
||||
use crate::{
|
||||
args::{
|
||||
get_secret_key, DatabaseArgs, DebugArgs, DevArgs, NetworkArgs, PayloadBuilderArgs,
|
||||
@@ -113,8 +113,8 @@ pub static PROMETHEUS_RECORDER_HANDLE: Lazy<PrometheusHandle> =
|
||||
/// ```rust
|
||||
/// # use reth_tasks::{TaskManager, TaskSpawner};
|
||||
/// # use reth::{
|
||||
/// # builder::NodeConfig,
|
||||
/// # cli::{
|
||||
/// # node_builder::NodeConfig,
|
||||
/// # ext::DefaultRethNodeCommandConfig,
|
||||
/// # },
|
||||
/// # args::RpcServerArgs,
|
||||
@@ -147,8 +147,8 @@ pub static PROMETHEUS_RECORDER_HANDLE: Lazy<PrometheusHandle> =
|
||||
/// ```rust
|
||||
/// # use reth_tasks::{TaskManager, TaskSpawner};
|
||||
/// # use reth::{
|
||||
/// # builder::NodeConfig,
|
||||
/// # cli::{
|
||||
/// # node_builder::NodeConfig,
|
||||
/// # ext::DefaultRethNodeCommandConfig,
|
||||
/// # },
|
||||
/// # args::RpcServerArgs,
|
||||
@@ -369,8 +369,8 @@ impl NodeConfig {
|
||||
/// # Example
|
||||
/// ```rust
|
||||
/// # use reth_tasks::{TaskManager, TaskSpawner};
|
||||
/// # use reth::builder::NodeConfig;
|
||||
/// # use reth::cli::{
|
||||
/// # node_builder::NodeConfig,
|
||||
/// # ext::DefaultRethNodeCommandConfig,
|
||||
/// # };
|
||||
/// # use tokio::runtime::Handle;
|
||||
@@ -1348,7 +1348,7 @@ impl NodeHandle {
|
||||
/// # Example
|
||||
/// ```
|
||||
/// # use reth::{
|
||||
/// # cli::node_builder::{NodeConfig, spawn_node},
|
||||
/// # builder::{NodeConfig, spawn_node},
|
||||
/// # args::RpcServerArgs,
|
||||
/// # };
|
||||
/// async fn t() {
|
||||
@@ -23,7 +23,6 @@ pub mod components;
|
||||
pub mod config;
|
||||
pub mod db_type;
|
||||
pub mod ext;
|
||||
pub mod node_builder;
|
||||
|
||||
/// Default [directives](Directive) for [EnvFilter] which disables high-frequency debug logs from
|
||||
/// `hyper` and `trust-dns`
|
||||
|
||||
@@ -8,7 +8,8 @@ use crate::{
|
||||
DatabaseArgs, DebugArgs, DevArgs, NetworkArgs, PayloadBuilderArgs, PruningArgs,
|
||||
RpcServerArgs, TxPoolArgs,
|
||||
},
|
||||
cli::{db_type::DatabaseBuilder, ext::RethCliExt, node_builder::NodeConfig},
|
||||
builder::NodeConfig,
|
||||
cli::{db_type::DatabaseBuilder, ext::RethCliExt},
|
||||
dirs::{DataDirPath, MaybePlatformPath},
|
||||
runner::CliContext,
|
||||
};
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
|
||||
pub mod args;
|
||||
pub mod builder;
|
||||
pub mod cli;
|
||||
pub mod commands;
|
||||
pub mod dirs;
|
||||
|
||||
Reference in New Issue
Block a user