Skip to content

Commit 310c249

Browse files
maschadCopilot
andauthored
fix: apply copilot suggestion
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f7512bf commit 310c249

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

atoma-p2p/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ impl AtomaP2pNode {
826826
"Incoming connection"
827827
);
828828
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)) {
829+
if bootstrap_node_peer_ids.iter().any(|node| node.parse::<PeerId>().map(|id| id == peer_id).unwrap_or(false)) {
830830
info!(
831831
target = "atoma-p2p",
832832
event = "incoming_connection_bootstrap_node",

0 commit comments

Comments
 (0)