Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Eizinger <[email protected]>
  • Loading branch information
umgefahren and thomaseizinger authored Oct 23, 2023
1 parent 23207bd commit 9597d53
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ pub enum PortUse {
Reuse,
}

/// Options to customize the behaviour during dialing. Through it one can specify:
/// - The role of the endpoint (dialer or listener).
/// - The port use policy.
/// Options to customize the behaviour during dialing.
#[derive(Debug, Copy, Clone)]
pub struct DialOpts {
/// The endpoint establishing a new connection. This option removes the necessity for the
/// `dial_as_listener` API.
/// The endpoint establishing a new connection.
///
/// When attempting a hole-punch, both parties simultaneously "dial" each other but one party has to be the "listener" on the final connection.
/// This option specifies the role of this node in the final connection.
pub endpoint: Endpoint,
/// The port use policy for a new connection.
pub port_use: PortUse,
Expand Down

0 comments on commit 9597d53

Please sign in to comment.