Skip to content

Commit

Permalink
style: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee committed May 2, 2024
1 parent 71cca56 commit 7ef9640
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sn_networking/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ impl NetworkBuilder {
ProtocolSupport::Outbound,
IDENTIFY_CLIENT_VERSION_STR.to_string(),
#[cfg(feature = "upnp")]
false
false,
)?;

Ok((network, net_event_recv, driver))
Expand All @@ -403,8 +403,7 @@ impl NetworkBuilder {
is_client: bool,
req_res_protocol: ProtocolSupport,
identify_version: String,
#[cfg(feature = "upnp")]
upnp: bool,
#[cfg(feature = "upnp")] upnp: bool,
) -> Result<(Network, mpsc::Receiver<NetworkEvent>, SwarmDriver)> {
let peer_id = PeerId::from(self.keypair.public());
// vdash metric (if modified please notify at https://github.com/happybeing/vdash/issues):
Expand Down Expand Up @@ -510,7 +509,8 @@ impl NetworkBuilder {
Some(libp2p::upnp::tokio::Behaviour::default())
} else {
None
}.into(); // Into `Toggle<T>`
}
.into(); // Into `Toggle<T>`

let (relay_transport, relay_behaviour) =
libp2p::relay::client::new(self.keypair.public().to_peer_id());
Expand Down

0 comments on commit 7ef9640

Please sign in to comment.