Skip to content

Commit

Permalink
Remove DNS
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Aug 20, 2023
1 parent da34611 commit 16f6aed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hole-punching-tests/Cargo.toml
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
clap = { version = "4.3.8", features = ["derive"] }
env_logger = "0.10.0"
futures = "0.3.28"
libp2p = { path = "../libp2p", features = ["tokio", "dns", "dcutr", "identify", "macros", "noise", "ping", "relay", "rendezvous", "tcp", "tokio", "yamux", "quic"] }
libp2p = { path = "../libp2p", features = ["tokio", "dcutr", "identify", "macros", "noise", "ping", "relay", "rendezvous", "tcp", "tokio", "yamux", "quic"] }
log = "0.4"
redis = { version = "0.23.0", default-features = false, features = ["tokio-comp"] }
tokio = { version = "1.29.1", features = ["full"] }
Expand Down
7 changes: 2 additions & 5 deletions hole-punching-tests/src/bin/hp_client.rs
Expand Up @@ -28,9 +28,7 @@ use libp2p::{
transport::Transport,
upgrade,
},
dcutr,
dns::DnsConfig,
identify, identity, noise, ping, quic, relay,
dcutr, identify, identity, noise, ping, quic, relay,
swarm::{NetworkBehaviour, SwarmBuilder, SwarmEvent},
tcp, yamux, PeerId,
};
Expand Down Expand Up @@ -100,8 +98,7 @@ async fn main() -> Result<()> {
.multiplex(yamux::Config::default())
.or_transport(quic::tokio::Transport::new(quic::Config::new(&local_key)));

DnsConfig::system(relay_tcp_quic_transport)
.await?
relay_tcp_quic_transport
.map(|either_output, _| match either_output {
Either::Left((peer_id, muxer)) => (peer_id, StreamMuxerBox::new(muxer)),
Either::Right((peer_id, muxer)) => (peer_id, StreamMuxerBox::new(muxer)),
Expand Down

0 comments on commit 16f6aed

Please sign in to comment.