Skip to content

Commit 3654685

Browse files
authored
docs(request-response): update docs about peer address management
Fixes #5372 Pull-Request: #5902.
1 parent 3a9e204 commit 3654685

File tree

1 file changed

+3
-2
lines changed
  • protocols/request-response/src

1 file changed

+3
-2
lines changed

protocols/request-response/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,9 @@ where
430430
/// > the `RequestResponse` protocol must either be embedded
431431
/// > in another `NetworkBehaviour` that provides peer and
432432
/// > address discovery, or known addresses of peers must be
433-
/// > managed via [`Behaviour::add_address`] and
434-
/// > [`Behaviour::remove_address`].
433+
/// > managed via [`libp2p_swarm::Swarm::add_peer_address`].
434+
/// > Addresses are automatically removed when dial attempts
435+
/// > to them fail.
435436
pub fn send_request(&mut self, peer: &PeerId, request: TCodec::Request) -> OutboundRequestId {
436437
let request_id = self.next_outbound_request_id();
437438
let request = OutboundMessage {

0 commit comments

Comments
 (0)