Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
chore!: breaking version change
Browse files Browse the repository at this point in the history
BREAKING CHANGE: new version of routing
- This commit is mainly to cover the change of Peer. Which used by
a public struct but won't trigger the version update automatically.
  • Loading branch information
maqi authored and lionel-faber committed Apr 13, 2021
1 parent 45899d5 commit 0fb090c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ pub struct Peer {
name: XorName,
addr: SocketAddr,
// A node's connectivity will be checked when first time join the network or got relocated.
// An adult can only got promoted to elder when this flag is set to true.
// An adult can only got promoted to elder when this flag is set to `true`.
// Taking a default of `false` to enforce the connectivity check.
reachable: bool,
}

impl Peer {
/// Creates a new `Peer` given `Name`, `SocketAddr`.
pub fn new(name: XorName, addr: SocketAddr) -> Self {
// Default to false enforce the connectivity check.
Self {
name,
addr,
Expand Down

0 comments on commit 0fb090c

Please sign in to comment.