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 Apr 24, 2024
1 parent c8833e4 commit 5a72de5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions sn_networking/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ impl NetworkBuilder {
ProtocolSupport::Outbound,
IDENTIFY_CLIENT_VERSION_STR.to_string(),
#[cfg(feature = "upnp")]
false
false,
)?;

Ok((network, net_event_recv, driver))
Expand All @@ -392,8 +392,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 @@ -499,7 +498,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
3 changes: 1 addition & 2 deletions sn_node/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ impl NodeBuilder {
initial_peers: Vec<Multiaddr>,
local: bool,
root_dir: PathBuf,
#[cfg(feature = "upnp")]
upnp: bool,
#[cfg(feature = "upnp")] upnp: bool,
) -> Self {
Self {
keypair,
Expand Down

0 comments on commit 5a72de5

Please sign in to comment.