You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As tracked in #2217, we should rename the symbols in the libp2p::dns module to follow the naming convention.
This module has two flavours, one for the tokio runtime and one for the async_std runtime. The libp2p::tcp module should provide a good inspiration as to what we'd like the API to look like: https://docs.rs/libp2p/latest/libp2p/tcp/index.html
The text was updated successfully, but these errors were encountered:
Hello, @thomaseizinger. I would like to tackle this issue. Is it okay to just separate the type declarations that depend on tokio and async-std into libp2p::dns::tokio and libp2p::dns::async_io?
Hello, @thomaseizinger. I would like to tackle this issue. Is it okay to just separate the type declarations that depend on tokio and async-std into libp2p::dns::tokio and libp2p::dns::async_io?
Great, thank you!
Yeah, more or less. We'd still like to reduce code duplication as much as possible. If you haven't yet, take a look at how the TCP transport is organised. DNS should roughly be the same :)
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.
As tracked in #2217, we should rename the symbols in the
libp2p::dns
module to follow the naming convention.This module has two flavours, one for the
tokio
runtime and one for theasync_std
runtime. Thelibp2p::tcp
module should provide a good inspiration as to what we'd like the API to look like: https://docs.rs/libp2p/latest/libp2p/tcp/index.htmlThe text was updated successfully, but these errors were encountered: