Skip to content
Closed
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
2 changes: 1 addition & 1 deletion core/src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static NEXT_LISTENER_ID: AtomicUsize = AtomicUsize::new(1);
pub enum PortUse {
/// Always allocate a new port for the dial.
New,
/// Best effor reusing of an existing port.
/// Best effort reusing of an existing port.
///
/// If there is no listener present that can be used to dial, a new port is allocated.
#[default]
Expand Down
2 changes: 1 addition & 1 deletion misc/multistream-select/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ pub enum Version {
///
/// This strategy is only applicable for the node with the role of "dialer"
/// in the negotiation and only if the dialer supports just a single
/// application protocol. In that case the dialer immedidately "settles"
/// application protocol. In that case the dialer immediately "settles"
/// on that protocol, buffering the negotiation messages to be sent
/// with the first round of application protocol data (or an attempt
/// is made to read from the `Negotiated` I/O stream).
Expand Down
6 changes: 3 additions & 3 deletions transports/tcp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ impl Config {
///
/// # Deprecation Notice
///
/// The new implementation works on a per-connaction basis, defined by the behaviour. This
/// removes the necessaity to configure the transport for port reuse, instead the behaviour
/// The new implementation works on a per-connection basis, defined by the behaviour. This
/// removes the necessity to configure the transport for port reuse, instead the behaviour
/// requiring this behaviour can decide whether to use port reuse or not.
///
/// The API to configure port reuse is part of [`Transport`] and the option can be found in
Expand All @@ -175,7 +175,7 @@ impl Config {
/// If [`PortUse::Reuse`] is enabled, the transport will try to reuse the local port of the
/// listener. If that's not possible, i.e. there is no listener or the transport doesn't allow
/// a direct control over ports, a new port (or the default behaviour) is used. If port reuse
/// is enabled for a connection, this option will be treated on a best-effor basis.
/// is enabled for a connection, this option will be treated on a best-effort basis.
#[deprecated(
since = "0.42.0",
note = "This option does nothing now, since the port reuse policy is now decided on a per-connection basis by the behaviour. The function will be removed in a future release."
Expand Down
Loading