Skip to content

Commit

Permalink
Avoid check gateways file in local simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
netsirius committed Sep 22, 2024
1 parent 605ff70 commit e454077
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/core/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ impl ConfigArgs {
.gateways
}
Err(err) => {
#[cfg(not(any(test, debug_assertions)))]
// FIXME: Remove local-simulation feature and use runtime flags
#[cfg(all(not(any(test, debug_assertions)), not(feature = "local-simulation")))]
{
if peer_id.is_none() && mode == OperationMode::Network {
tracing::error!(file = ?gateways_file, "Failed to read gateways file: {err}");
Expand Down
1 change: 1 addition & 0 deletions crates/core/src/node/testing_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ impl SimNetwork {

let mut config_args = ConfigArgs::default();
config_args.id = Some(format!("{label}"));
// FIXME: Is necessary use config_args.build() for the simulation. Related with the FXIME in Config line 238
let mut config = NodeConfig::new(config_args.build().unwrap()).await.unwrap();
config.key_pair = keypair;
config.network_listener_ip = Ipv6Addr::LOCALHOST.into();
Expand Down

0 comments on commit e454077

Please sign in to comment.