Skip to content

Commit

Permalink
chore(node-wasm): Upgrade libp2p-websocket-websys (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
oblique authored Aug 5, 2024
1 parent 515c881 commit ebdb374
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ libp2p = { workspace = true, features = [
"noise",
"wasm-bindgen",
"webtransport-websys",
"websocket-websys",
"yamux",
] }
pin-project = "1.1.5"
Expand All @@ -90,6 +89,7 @@ send_wrapper = { version = "0.6.0", features = ["futures"] }
serde-wasm-bindgen = "0.6.5"
wasm-bindgen = "0.2.92"
wasm-bindgen-futures = "0.4.42"
libp2p-websocket-websys = "0.3.3"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
function_name = "0.3.0"
Expand Down
3 changes: 2 additions & 1 deletion node/src/p2p/swarm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ mod imp {
mod imp {
use super::*;
use libp2p::core::upgrade::Version;
use libp2p::{noise, websocket_websys, webtransport_websys, yamux, SwarmBuilder, Transport};
use libp2p::{noise, webtransport_websys, yamux, SwarmBuilder, Transport};
use libp2p_websocket_websys as websocket_websys;

pub(crate) async fn new_swarm<B>(keypair: Keypair, behaviour: B) -> Result<Swarm<B>>
where
Expand Down

0 comments on commit ebdb374

Please sign in to comment.