Skip to content

Commit

Permalink
review: add type alias for previous Mdns type.
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs committed Nov 15, 2022
1 parent 0f1cdf9 commit 7715249
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions protocols/mdns/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down

0 comments on commit 7715249

Please sign in to comment.