Skip to content

Commit

Permalink
review: update deprecated messages back to 0.24 version
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs committed Dec 12, 2022
1 parent 533ae05 commit 223ec5f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion protocols/request-response/src/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use std::io;
/// for a request-response `Behaviour` protocol or
/// protocol family and how they are encoded / decoded on an I/O stream.
#[deprecated(
since = "0.23.1",
since = "0.24",
note = "Use re-exports that omit `RequestResponse` prefix, i.e. `libp2p::request_response::Codec`"
)]
#[async_trait]
Expand Down
4 changes: 2 additions & 2 deletions protocols/request-response/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ use std::{
};

#[deprecated(
since = "0.23.1",
since = "0.24",
note = "Use re-exports that omit `RequestResponse` prefix, i.e. `libp2p::request_response::handler::Handler`"
)]
pub type RequestResponseHandler<TCodec> = Handler<TCodec>;
Expand Down Expand Up @@ -194,7 +194,7 @@ where
}

#[deprecated(
since = "0.23.1",
since = "0.24",
note = "Use re-exports that omit `RequestResponse` prefix, i.e. `libp2p::request_response::handler::Event`"
)]
pub type RequestResponseHandlerEvent<TCodec> = Event<TCodec>;
Expand Down
10 changes: 5 additions & 5 deletions protocols/request-response/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,32 +86,32 @@ use std::{
};

#[deprecated(
since = "0.23.1",
since = "0.24",
note = "Use libp2p::request_response::Behaviour instead."
)]
pub type RequestResponse<TCodec> = Behaviour<TCodec>;

#[deprecated(
since = "0.23.1",
since = "0.24",
note = "Use re-exports that omit `RequestResponse` prefix, i.e. `libp2p::request_response::Config`"
)]
pub type RequestResponseConfig = Config;

#[deprecated(
since = "0.23.1",
since = "0.24",
note = "Use re-exports that omit `RequestResponse` prefix, i.e. `libp2p::request_response::Event`"
)]
pub type RequestResponseEvent<TRequest, TResponse> = Event<TRequest, TResponse>;

#[deprecated(
since = "0.23.1",
since = "0.24",
note = "Use re-exports that omit `RequestResponse` prefix, i.e. `libp2p::request_response::Message`"
)]
pub type RequestResponseMessage<TRequest, TResponse, TChannelResponse> =
Message<TRequest, TResponse, TChannelResponse>;

#[deprecated(
since = "0.23.1",
since = "0.24",
note = "Use re-exports that omit `RequestResponse` prefix, i.e. `libp2p::request_response::handler::Event`"
)]
pub type HandlerEvent<TCodec> = handler::Event<TCodec>;
Expand Down

0 comments on commit 223ec5f

Please sign in to comment.