Skip to content

Commit

Permalink
remove silent arg
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Nov 13, 2024
1 parent c65649e commit f9523ee
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/katana/cli/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ pub struct NodeArgs {

#[derive(Debug, Serialize, Deserialize, Default)]
pub struct NodeArgsConfig {
pub silent: Option<bool>,
pub no_mining: Option<bool>,
pub block_time: Option<u64>,
pub db_dir: Option<PathBuf>,
Expand Down Expand Up @@ -127,8 +126,7 @@ impl TryFrom<NodeArgs> for NodeArgsConfig {
let args = args.with_config_file()?;

let mut node_config = NodeArgsConfig {
silent: Some(args.silent),
no_mining: Some(args.no_mining),
no_mining: if args.no_mining { Some(true) } else { None },
block_time: args.block_time,
db_dir: args.db_dir,
messaging: args.messaging,
Expand Down Expand Up @@ -377,10 +375,6 @@ impl NodeArgs {
// Currently, the merge is made at the top level of the commands.
// We may add recursive merging in the future.

if !self.silent {
self.silent = config.silent.unwrap_or_default();
}

if !self.no_mining {
self.no_mining = config.no_mining.unwrap_or_default();
}
Expand Down

0 comments on commit f9523ee

Please # to comment.