mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
add a few more lints (#8574)
This commit is contained in:
@@ -883,10 +883,8 @@ impl PeersManager {
|
||||
for peer_id in unbanned_peers {
|
||||
if let Some(peer) = self.peers.get_mut(&peer_id) {
|
||||
peer.unban();
|
||||
} else {
|
||||
continue
|
||||
self.queued_actions.push_back(PeerAction::UnBanPeer { peer_id });
|
||||
}
|
||||
self.queued_actions.push_back(PeerAction::UnBanPeer { peer_id });
|
||||
}
|
||||
|
||||
// clear the backoff list of expired backoffs, and mark the relevant peers as
|
||||
|
||||
@@ -159,7 +159,7 @@ impl Default for LayerInfo {
|
||||
Self {
|
||||
format: LogFormat::Terminal,
|
||||
default_directive: LevelFilter::INFO.to_string(),
|
||||
filters: "".to_string(),
|
||||
filters: String::new(),
|
||||
color: Some("always".to_string()),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user