From 2ea4b919a7ed41ec93829893c107e92e667fcb79 Mon Sep 17 00:00:00 2001 From: antiochp <30642645+antiochp@users.noreply.github.com> Date: Fri, 3 May 2019 13:30:28 +0100 Subject: [PATCH] fixup --- p2p/src/peer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/src/peer.rs b/p2p/src/peer.rs index e43655a5f5..8f2d27f8f6 100644 --- a/p2p/src/peer.rs +++ b/p2p/src/peer.rs @@ -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) -> Peer { let state = Arc::new(RwLock::new(State::Connected)); let tracking_adapter = TrackingAdapter::new(adapter);