We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7512bf commit 310c249Copy full SHA for 310c249
1 file changed
atoma-p2p/src/service.rs
@@ -826,7 +826,7 @@ impl AtomaP2pNode {
826
"Incoming connection"
827
);
828
if let Some(bootstrap_node_peer_ids) = &self.bootstrap_node_peer_ids {
829
- if bootstrap_node_peer_ids.iter().any(|node| node.parse::<PeerId>().map(|id| id.to_string() == peer_id).unwrap_or(false)) {
+ if bootstrap_node_peer_ids.iter().any(|node| node.parse::<PeerId>().map(|id| id == peer_id).unwrap_or(false)) {
830
info!(
831
target = "atoma-p2p",
832
event = "incoming_connection_bootstrap_node",
0 commit comments