From 77152490d2c9e868b2cf41b2a8e37c48b1d1fdee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Oliveira?= Date: Tue, 15 Nov 2022 14:04:11 +0000 Subject: [PATCH] review: add type alias for previous Mdns type. --- protocols/mdns/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/protocols/mdns/src/lib.rs b/protocols/mdns/src/lib.rs index eabc85284e4..00f26ba5124 100644 --- a/protocols/mdns/src/lib.rs +++ b/protocols/mdns/src/lib.rs @@ -50,6 +50,13 @@ pub type MdnsConfig = Config; )] pub type MdnsEvent = Event; +#[deprecated( + since = "0.42.0", + note = "Use the async-io prefixed `Mdns`, i.e. `libp2p::mdns::async_io::Mdns`" +)] +#[cfg(feature = "async-io")] +pub type Mdns = async_io::Behaviour; + mod behaviour; pub use crate::behaviour::{Behaviour, Event};