diff --git a/CHANGELOG.md b/CHANGELOG.md index 69877b0bbd3..fd635e85f3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,6 +71,8 @@ - Update to [`libp2p-swarm` `v0.39.1`](swarm/CHANGELOG.md#0391). +- Update to [`libp2p-identify` `v0.39.1`](protocols/identify/CHANGELOG.md#0391). + # 0.48.0 - Update to [`libp2p-core` `v0.36.0`](core/CHANGELOG.md#0360). diff --git a/misc/metrics/CHANGELOG.md b/misc/metrics/CHANGELOG.md index 20e2741e338..cc9c29b8e10 100644 --- a/misc/metrics/CHANGELOG.md +++ b/misc/metrics/CHANGELOG.md @@ -4,6 +4,8 @@ - - Update to `libp2p-identify` `v0.39.1`. +- Update to `libp2p-identify` `v0.39.1`. + # 0.9.0 - Update to `libp2p-swarm` `v0.39.0`. diff --git a/protocols/identify/src/lib.rs b/protocols/identify/src/lib.rs index c37c7e10911..eb9a38610c4 100644 --- a/protocols/identify/src/lib.rs +++ b/protocols/identify/src/lib.rs @@ -21,7 +21,7 @@ //! Implementation of the [Identify] protocol. //! //! This implementation of the protocol periodically exchanges -//! [`IdentifyInfo`] messages between the peers on an established connection. +//! [`identify::Info`] messages between the peers on an established connection. //! //! At least one identification request is sent on a newly established //! connection, beyond which the behaviour does not keep connections alive. @@ -62,6 +62,12 @@ pub type IdentifyEvent = Event; #[deprecated(since = "0.40.0", note = "Use libp2p::identify::Behaviour instead.")] pub type Identify = Behaviour; +#[deprecated( + since = "0.40.0", + note = "Use re-exports that omit `Identify` prefix, i.e. `libp2p::identify::Info`" +)] +pub type IdentifyInfo = Info; + mod behaviour; mod handler; mod protocol; diff --git a/swarm-derive/tests/test.rs b/swarm-derive/tests/test.rs index ec868b16070..bf3041d3f99 100644 --- a/swarm-derive/tests/test.rs +++ b/swarm-derive/tests/test.rs @@ -314,7 +314,7 @@ fn custom_event_with_either() { } impl From> for BehaviourOutEvent { - fn from(event: Either) -> Self { + fn from(event: Either) -> Self { BehaviourOutEvent::PingOrIdentify(event) } }