From f279fd6e7c6d8714bc91ef4947adf7eeec4c7d0b Mon Sep 17 00:00:00 2001 From: Niko Date: Thu, 18 May 2023 19:32:42 +0300 Subject: [PATCH] comments --- p2p-net/src/broker.rs | 2 +- p2p-net/src/connection.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p-net/src/broker.rs b/p2p-net/src/broker.rs index 597ea63..ddebee9 100644 --- a/p2p-net/src/broker.rs +++ b/p2p-net/src/broker.rs @@ -64,7 +64,7 @@ pub struct Broker { impl Broker { pub fn reconnecting(&mut self, peer_id: &DirectPeerId) { - let mut peerinfo = self.peers.get_mut(peer_id); + let peerinfo = self.peers.get_mut(peer_id); match peerinfo { Some(info) => match &info.connected { PeerConnection::NONE => {} diff --git a/p2p-net/src/connection.rs b/p2p-net/src/connection.rs index 448cacc..58a3105 100644 --- a/p2p-net/src/connection.rs +++ b/p2p-net/src/connection.rs @@ -88,7 +88,7 @@ pub enum FSMstate { Noise0, Noise1, Noise2, - Noise3, + Noise3, // unused ExtRequest, ExtResponse, ClientHello,