Skip to content

Commit

Permalink
refactor(dns): rename Config to Transport
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
  • Loading branch information
whtsht and thomaseizinger authored Sep 24, 2023
1 parent d348833 commit a715be3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions transports/dns/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ const MAX_DNS_LOOKUPS: usize = 32;
/// result of a single `/dnsaddr` lookup.
const MAX_TXT_RECORDS: usize = 16;

/// A `Transport` wrapper for performing DNS lookups when dialing `Multiaddr`esses.
/// A [`Transport`] for performing DNS lookups when dialing `Multiaddr`esses.
/// You shouldn't need to use this type directly. Use [`tokio::Config`] or [`async_std::Config`] instead.
#[derive(Debug)]
pub struct Config<T, R> {
pub struct Transport<T, R> {
/// The underlying transport.
inner: Arc<Mutex<T>>,
/// The DNS resolver used when dialing addresses with DNS components.
Expand All @@ -193,7 +193,7 @@ pub struct Config<T, R> {
#[deprecated(note = "Use `async_std::Config` or `tokio::Config` instead.")]
pub type GenDnsConfig<T, R> = Config<T, R>;

impl<T, R> Transport for Config<T, R>
impl<T, R> libp2p_core::Transport for Config<T, R>
where
T: Transport + Send + Unpin + 'static,
T::Error: Send,
Expand Down

0 comments on commit a715be3

Please sign in to comment.