Skip to content

Commit

Permalink
refactor: get rid of quic for ios builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Jan 26, 2024
1 parent 5d12a3d commit bf3400a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion crates/torii/libp2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tempfile = "3.9.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio.workspace = true
libp2p = { git = "https://github.com/libp2p/rust-libp2p", features = [ "ed25519", "gossipsub", "identify", "macros", "noise", "ping", "quic", "relay", "tcp", "tokio", "yamux" ] }
libp2p = { git = "https://github.com/libp2p/rust-libp2p", features = [ "ed25519", "gossipsub", "identify", "macros", "noise", "ping", "relay", "tcp", "tokio", "yamux" ] }
libp2p-webrtc = { git = "https://github.com/libp2p/rust-libp2p", features = [ "tokio", "pem" ] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down
1 change: 0 additions & 1 deletion crates/torii/libp2p/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ impl RelayClient {
let mut swarm = libp2p::SwarmBuilder::with_existing_identity(local_key)
.with_tokio()
.with_tcp(tcp::Config::default(), noise::Config::new, yamux::Config::default)?
.with_quic()
.with_behaviour(|key| {
let gossipsub_config: gossipsub::Config = gossipsub::ConfigBuilder::default()
.heartbeat_interval(Duration::from_secs(
Expand Down
1 change: 0 additions & 1 deletion crates/torii/libp2p/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ impl Relay {
let mut swarm = libp2p::SwarmBuilder::with_existing_identity(local_key)
.with_tokio()
.with_tcp(tcp::Config::default(), noise::Config::new, yamux::Config::default)?
.with_quic()
.with_other_transport(|key| {
Ok(webrtc::tokio::Transport::new(key.clone(), cert)
.map(|(peer_id, conn), _| (peer_id, StreamMuxerBox::new(conn))))
Expand Down

0 comments on commit bf3400a

Please sign in to comment.