Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed Aug 8, 2023
1 parent 3492646 commit c4f0a38
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion beacon_node/lighthouse_network/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
2 changes: 1 addition & 1 deletion beacon_node/lighthouse_network/src/discovery/enr_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,4 +397,4 @@ mod tests {

assert_eq!(enr.node_id(), node_id);
}
}
}
2 changes: 1 addition & 1 deletion beacon_node/lighthouse_network/src/discovery/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
8 changes: 5 additions & 3 deletions beacon_node/lighthouse_network/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,10 @@ impl<AppReqId: ReqId, TSpec: EthSpec> Network<AppReqId, TSpec> {

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()) {
Expand Down Expand Up @@ -1599,4 +1601,4 @@ impl<AppReqId: ReqId, TSpec: EthSpec> Network<AppReqId, TSpec> {
pub async fn next_event(&mut self) -> NetworkEvent<AppReqId, TSpec> {
futures::future::poll_fn(|cx| self.poll_network(cx)).await
}
}
}
2 changes: 1 addition & 1 deletion beacon_node/network/src/nat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@ pub fn remove_mappings(tcp_port: Option<u16>, udp_ports: &[u16], log: &slog::Log
Err(e) => debug!(log, "UPnP failed to remove mappings"; "error" => %e),
}
}
}
}

0 comments on commit c4f0a38

Please sign in to comment.