From a715be3eb0ed4012256ea92218f72d42ccba2b5d Mon Sep 17 00:00:00 2001 From: whtsht <85547207+whtsht@users.noreply.github.com> Date: Sun, 24 Sep 2023 09:40:33 +0900 Subject: [PATCH] refactor(dns): rename `Config` to `Transport` Co-authored-by: Thomas Eizinger --- transports/dns/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/transports/dns/src/lib.rs b/transports/dns/src/lib.rs index 14ccc29ad2d4..93e1fca82131 100644 --- a/transports/dns/src/lib.rs +++ b/transports/dns/src/lib.rs @@ -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 { +pub struct Transport { /// The underlying transport. inner: Arc>, /// The DNS resolver used when dialing addresses with DNS components. @@ -193,7 +193,7 @@ pub struct Config { #[deprecated(note = "Use `async_std::Config` or `tokio::Config` instead.")] pub type GenDnsConfig = Config; -impl Transport for Config +impl libp2p_core::Transport for Config where T: Transport + Send + Unpin + 'static, T::Error: Send,