diff --git a/beacon_node/lighthouse_network/src/config.rs b/beacon_node/lighthouse_network/src/config.rs index 58e785c0e45..a0cf0bdbba9 100644 --- a/beacon_node/lighthouse_network/src/config.rs +++ b/beacon_node/lighthouse_network/src/config.rs @@ -591,4 +591,4 @@ pub const fn is_global_ipv6(addr: &Ipv6Addr) -> bool { || is_documentation(addr) || is_unique_local(addr) || is_unicast_link_local(addr)) -} \ No newline at end of file +} diff --git a/beacon_node/lighthouse_network/src/discovery/enr_ext.rs b/beacon_node/lighthouse_network/src/discovery/enr_ext.rs index 3c558ae56d1..f1a04c9d7c9 100644 --- a/beacon_node/lighthouse_network/src/discovery/enr_ext.rs +++ b/beacon_node/lighthouse_network/src/discovery/enr_ext.rs @@ -397,4 +397,4 @@ mod tests { assert_eq!(enr.node_id(), node_id); } -} \ No newline at end of file +} diff --git a/beacon_node/lighthouse_network/src/discovery/mod.rs b/beacon_node/lighthouse_network/src/discovery/mod.rs index 79271abd053..cc239501309 100644 --- a/beacon_node/lighthouse_network/src/discovery/mod.rs +++ b/beacon_node/lighthouse_network/src/discovery/mod.rs @@ -1242,4 +1242,4 @@ mod tests { // when a peer belongs to multiple subnet ids, we use the highest ttl. assert_eq!(results.get(&enr1).unwrap(), &instant1); } -} \ No newline at end of file +} diff --git a/beacon_node/lighthouse_network/src/service/mod.rs b/beacon_node/lighthouse_network/src/service/mod.rs index 35ba4ea99d7..76c2baef5f0 100644 --- a/beacon_node/lighthouse_network/src/service/mod.rs +++ b/beacon_node/lighthouse_network/src/service/mod.rs @@ -416,8 +416,10 @@ impl Network { for listen_multiaddr in config.listen_addrs().listen_addresses() { // If QUIC is disabled, ignore listening on QUIC ports - if config.disable_quic_support && listen_multiaddr.iter().any(|v| v == MProtocol::QuicV1) { - continue; + if config.disable_quic_support + && listen_multiaddr.iter().any(|v| v == MProtocol::QuicV1) + { + continue; } match self.swarm.listen_on(listen_multiaddr.clone()) { @@ -1599,4 +1601,4 @@ impl Network { pub async fn next_event(&mut self) -> NetworkEvent { futures::future::poll_fn(|cx| self.poll_network(cx)).await } -} \ No newline at end of file +} diff --git a/beacon_node/network/src/nat.rs b/beacon_node/network/src/nat.rs index b109ae71709..4476ccd4425 100644 --- a/beacon_node/network/src/nat.rs +++ b/beacon_node/network/src/nat.rs @@ -199,4 +199,4 @@ pub fn remove_mappings(tcp_port: Option, udp_ports: &[u16], log: &slog::Log Err(e) => debug!(log, "UPnP failed to remove mappings"; "error" => %e), } } -} \ No newline at end of file +}