Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Oct 11, 2023
1 parent 5959c22 commit d45aae6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions crates/topos/src/components/node/commands/up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ pub struct Up {
#[arg(long, env = "TOPOS_SECRETS_MANAGER")]
pub secrets_config: Option<String>,

/// Do not run background edge process as part of node
/// Usable for cases where edge edpoint is available as infura (or similar cluod provider) endpoint
#[arg(long, env = "EXTERNAL_EDGE_NODE", action)]
pub external_edge_node: bool,
/// Defines that an external edge node will be use, replacing the one normally run by the node.
/// Usable for cases where edge endpoint is available as infura (or similar cloud provider) endpoint
#[arg(long, env = "TOPOS_NO_EDGE_PROCESS", action)]
pub no_edge_process: bool,
}
4 changes: 2 additions & 2 deletions crates/topos/src/components/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pub(crate) async fn handle_command(
let mut processes = FuturesUnordered::new();

// Edge
if cmd.external_edge_node {
if cmd.no_edge_process {
info!("Using external edge node, skip running of local edge instance...")
} else {
let data_dir = node_path.clone();
Expand All @@ -148,7 +148,7 @@ pub(crate) async fn handle_command(
edge arguments: {:?}",
genesis.path.display(),
data_dir.display(),
config.edge.as_ref().unwrap().args
config.edge.as_ref().expect("valid edge configuration").args
);
processes.push(services::spawn_edge_process(
edge_path.join(BINARY_NAME),
Expand Down

0 comments on commit d45aae6

Please sign in to comment.