mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(clippy): make clippy happy (#2475)
This commit is contained in:
@ -369,7 +369,7 @@ impl PeersManager {
|
||||
|
||||
/// Gracefully disconnected a pending session
|
||||
pub(crate) fn on_pending_session_gracefully_closed(&mut self, peer_id: &PeerId) {
|
||||
if let Some(mut peer) = self.peers.get_mut(peer_id) {
|
||||
if let Some(peer) = self.peers.get_mut(peer_id) {
|
||||
peer.state = PeerConnectionState::Idle;
|
||||
} else {
|
||||
return
|
||||
@ -466,7 +466,7 @@ impl PeersManager {
|
||||
} else {
|
||||
let mut backoff_until = None;
|
||||
|
||||
if let Some(mut peer) = self.peers.get_mut(peer_id) {
|
||||
if let Some(peer) = self.peers.get_mut(peer_id) {
|
||||
if let Some(kind) = err.should_backoff() {
|
||||
// Increment peer.backoff_counter
|
||||
if kind.is_severe() {
|
||||
|
||||
Reference in New Issue
Block a user