Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
antiochp committed May 3, 2019
1 parent cffb0b9 commit 2ea4b91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/src/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ impl fmt::Debug for Peer {
}

impl Peer {
// Only accept and connect can be externally used to build a peer
fn new(info: PeerInfo, conn: TcpStream, adapter: Arc<dyn NetAdapter>) -> Peer {
let state = Arc::new(RwLock::new(State::Connected));
let tracking_adapter = TrackingAdapter::new(adapter);
Expand Down

0 comments on commit 2ea4b91

Please sign in to comment.