Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Nov 14, 2023
1 parent 1b67009 commit 6bb7282
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions tools/config/src/config_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ enum ConfigSub {
/// check the files generated
#[clap(short, long)]
check: bool,

},

/// Generate a fullnode dir and add fullnode.yaml from template
Expand All @@ -100,7 +99,7 @@ enum ConfigSub {
home_path: Option<PathBuf>,
/// private VFN (only for validators)
#[clap(short, long)]
vfn: bool
vfn: bool,
},
}

Expand Down Expand Up @@ -247,12 +246,12 @@ impl ConfigCli {
println!("downloaded genesis block");

let p = if *vfn {
// no need for seed peers, will be identified
// to validator node
init_fullnode_yaml(home_path.to_owned(), false, true).await?
// no need for seed peers, will be identified
// to validator node
init_fullnode_yaml(home_path.to_owned(), false, true).await?
} else {
// we want seed peers, and will not have an identity
init_fullnode_yaml(home_path.to_owned(), true, false).await?
// we want seed peers, and will not have an identity
init_fullnode_yaml(home_path.to_owned(), true, false).await?
};

println!("config created at {}", p.display());
Expand Down
4 changes: 2 additions & 2 deletions tools/config/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub mod config_cli;
pub mod make_yaml_public_fullnode;
pub mod validator_config;
pub mod legacy_config;
pub mod make_profile;
pub mod make_yaml_public_fullnode;
pub mod make_yaml_validator;
pub mod validator_config;

0 comments on commit 6bb7282

Please sign in to comment.