chore: Changed visibility of Cli struct attributes to pub for op-reth (#13985)

This commit is contained in:
cakevm
2025-01-25 11:31:12 +01:00
committed by GitHub
parent 60f9277dc5
commit 280b6bf1b7

View File

@ -69,7 +69,7 @@ use reth_node_metrics::recorder::install_prometheus_recorder;
pub struct Cli<Spec: ChainSpecParser = OpChainSpecParser, Ext: clap::Args + fmt::Debug = NoArgs> { pub struct Cli<Spec: ChainSpecParser = OpChainSpecParser, Ext: clap::Args + fmt::Debug = NoArgs> {
/// The command to run /// The command to run
#[command(subcommand)] #[command(subcommand)]
command: Commands<Spec, Ext>, pub command: Commands<Spec, Ext>,
/// The chain this node is running. /// The chain this node is running.
/// ///
@ -82,7 +82,7 @@ pub struct Cli<Spec: ChainSpecParser = OpChainSpecParser, Ext: clap::Args + fmt:
value_parser = Spec::parser(), value_parser = Spec::parser(),
global = true, global = true,
)] )]
chain: Arc<Spec::ChainSpec>, pub chain: Arc<Spec::ChainSpec>,
/// Add a new instance of a node. /// Add a new instance of a node.
/// ///
@ -98,10 +98,11 @@ pub struct Cli<Spec: ChainSpecParser = OpChainSpecParser, Ext: clap::Args + fmt:
/// - `HTTP_RPC_PORT`: default - `instance` + 1 /// - `HTTP_RPC_PORT`: default - `instance` + 1
/// - `WS_RPC_PORT`: default + `instance` * 2 - 2 /// - `WS_RPC_PORT`: default + `instance` * 2 - 2
#[arg(long, value_name = "INSTANCE", global = true, default_value_t = 1, value_parser = value_parser!(u16).range(..=200))] #[arg(long, value_name = "INSTANCE", global = true, default_value_t = 1, value_parser = value_parser!(u16).range(..=200))]
instance: u16, pub instance: u16,
/// The logging configuration for the CLI.
#[command(flatten)] #[command(flatten)]
logs: LogArgs, pub logs: LogArgs,
} }
impl Cli { impl Cli {