Skip to content

Commit

Permalink
remove leftover println's
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs committed Aug 10, 2023
1 parent 632a57b commit 2def400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions beacon_node/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ pub fn get_config<E: EthSpec>(

let data_dir_ref = client_config.data_dir().clone();

println!("SET NETWORK CONFIG");
set_network_config(&mut client_config.network, cli_args, &data_dir_ref, log)?;

/*
Expand Down Expand Up @@ -1233,8 +1232,6 @@ pub fn parse_listening_addresses(
format!("Failed to parse --quic6-port as an integer: {parse_error}")
})?;

println!("{:?}", maybe_disc6_port);
println!("{:?}", (maybe_ipv4, maybe_ipv6));
// Now put everything together
let listening_addresses = match (maybe_ipv4, maybe_ipv6) {
(None, None) => {
Expand Down Expand Up @@ -1333,13 +1330,11 @@ pub fn parse_listening_addresses(
.then(unused_port::unused_tcp6_port)
.transpose()?
.unwrap_or(port6);
println!("{:?}", maybe_disc6_port);
let ipv6_disc_port = use_zero_ports
.then(unused_port::unused_udp6_port)
.transpose()?
.or(maybe_disc6_port)
.unwrap_or(ipv6_tcp_port);
println!("{:?}", ipv6_disc_port);
let ipv6_quic_port = use_zero_ports
.then(unused_port::unused_udp6_port)
.transpose()?
Expand Down Expand Up @@ -1438,4 +1433,4 @@ where
.into_iter()
.next()
.ok_or(format!("Must provide at least one value to {}", flag_name))
}
}
3 changes: 1 addition & 2 deletions lighthouse/tests/beacon_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,6 @@ fn network_port_and_discovery_port_flags_over_ipv4_and_ipv6() {
let disc4_port = unused_udp4_port().expect("Unable to find unused port.");
let tcp6_port = unused_tcp6_port().expect("Unable to find unused port.");
let disc6_port = unused_udp6_port().expect("Unable to find unused port.");
println!("Thing");
CommandLineTest::new()
.flag("listen-address", Some("::1"))
.flag("listen-address", Some("127.0.0.1"))
Expand Down Expand Up @@ -2358,4 +2357,4 @@ fn progressive_balances_fast() {
ProgressiveBalancesMode::Fast
)
});
}
}

0 comments on commit 2def400

Please sign in to comment.