From bf3400aaf0e40ac58cbed95dead67ed0525c8b27 Mon Sep 17 00:00:00 2001 From: Nasr Date: Fri, 26 Jan 2024 11:44:01 -0500 Subject: [PATCH] refactor: get rid of quic for ios builds --- crates/torii/libp2p/Cargo.toml | 2 +- crates/torii/libp2p/src/client/mod.rs | 1 - crates/torii/libp2p/src/server/mod.rs | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/torii/libp2p/Cargo.toml b/crates/torii/libp2p/Cargo.toml index 51e308975d..f0b23f5e51 100644 --- a/crates/torii/libp2p/Cargo.toml +++ b/crates/torii/libp2p/Cargo.toml @@ -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] diff --git a/crates/torii/libp2p/src/client/mod.rs b/crates/torii/libp2p/src/client/mod.rs index 6c9d20c361..9ada55fc38 100644 --- a/crates/torii/libp2p/src/client/mod.rs +++ b/crates/torii/libp2p/src/client/mod.rs @@ -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( diff --git a/crates/torii/libp2p/src/server/mod.rs b/crates/torii/libp2p/src/server/mod.rs index 6d64cc743a..e285bfa8e1 100644 --- a/crates/torii/libp2p/src/server/mod.rs +++ b/crates/torii/libp2p/src/server/mod.rs @@ -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))))