Skip to content

Commit

Permalink
fix(networking): allow wasm32 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee committed Apr 24, 2024
1 parent 99970f5 commit c8833e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sn_networking/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ pub struct NetworkBuilder {
metrics_registry: Option<Registry>,
#[cfg(feature = "open-metrics")]
metrics_server_port: u16,
#[cfg(feature = "upnp")]
upnp: bool,
}

Expand Down Expand Up @@ -314,6 +315,7 @@ impl NetworkBuilder {
};

let listen_addr = self.listen_addr;
#[cfg(feature = "upnp")]
let upnp = self.upnp;

let (network, events_receiver, mut swarm_driver) = self.build(
Expand Down

0 comments on commit c8833e4

Please sign in to comment.