Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions protocols/rendezvous/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 0.18.0

- Expose `PROTOCOL_NAME` constant for the protocol ID.
See [PR 6469](https://github.com/libp2p/rust-libp2p/pull/6469).

- Port [8fde2dc](https://github.com/libp2p/rust-libp2p/commit/8fde2dc0fae8b433f97c6cdf9ee24f59d51a359c) and make unrequired pub functions private
See [PR 6364](https://github.com/libp2p/rust-libp2p/pull/6364).

Expand Down
2 changes: 1 addition & 1 deletion protocols/rendezvous/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl Behaviour {
events: Default::default(),
inner: libp2p_request_response::Behaviour::with_codec(
crate::codec::Codec::default(),
iter::once((crate::PROTOCOL_IDENT, ProtocolSupport::Outbound)),
iter::once((crate::PROTOCOL_NAME, ProtocolSupport::Outbound)),
libp2p_request_response::Config::default(),
),
keypair,
Expand Down
2 changes: 1 addition & 1 deletion protocols/rendezvous/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub const MAX_TTL: Ttl = 60 * 60 * 72;
/// <https://github.com/libp2p/specs/tree/master/rendezvous#recommendations-for-rendezvous-points-configurations>.
pub const MAX_NAMESPACE: usize = 255;

pub(crate) const PROTOCOL_IDENT: StreamProtocol = StreamProtocol::new("/rendezvous/1.0.0");
pub const PROTOCOL_NAME: StreamProtocol = StreamProtocol::new("/rendezvous/1.0.0");

pub mod client;
pub mod server;
2 changes: 1 addition & 1 deletion protocols/rendezvous/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl Behaviour {
Self {
inner: libp2p_request_response::Behaviour::with_codec(
crate::codec::Codec::default(),
iter::once((crate::PROTOCOL_IDENT, ProtocolSupport::Inbound)),
iter::once((crate::PROTOCOL_NAME, ProtocolSupport::Inbound)),
libp2p_request_response::Config::default(),
),

Expand Down
Loading