mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-13 01:51:23 +00:00
refactor(dns): unify symbol naming
Renamed the following - `dns::GenDnsConfig` -> `dns::Config` - `dns::DnsConfig` -> `dns::async_std::Config` - `dns::TokioDnsConfig` -> `dns::tokio::Config` If async-std feature is enable, use `dns::async_std::Config`. When using tokio, import `dns::tokio::Config` . There is no need to use `dns::Config` directly. Resolves #4486. Related: #2217. Pull-Request: #4505.
This commit is contained in:
@ -405,7 +405,7 @@ async fn swarm<B: NetworkBehaviour + Default>() -> Result<Swarm<B>> {
|
||||
libp2p_quic::tokio::Transport::new(config)
|
||||
};
|
||||
|
||||
let dns = libp2p_dns::TokioDnsConfig::system(OrTransport::new(quic, tcp))?;
|
||||
let dns = libp2p_dns::tokio::Transport::system(OrTransport::new(quic, tcp))?;
|
||||
|
||||
dns.map(|either_output, _| match either_output {
|
||||
Either::Left((peer_id, muxer)) => (peer_id, StreamMuxerBox::new(muxer)),
|
||||
|
Reference in New Issue
Block a user