Skip to content

Commit 2f7d42d

Browse files
committed
remove debugging logs
1 parent 6c8214d commit 2f7d42d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

iroh-gossip/src/net.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,6 @@ impl Actor {
422422
trace!("handle to_actor {msg:?}");
423423
match msg {
424424
ToActor::ConnIncoming(peer_id, origin, conn) => {
425-
if peer_id == self.endpoint.node_id() {
426-
tracing::error!("Incoming connection from self! How can this happen !!??");
427-
}
428425
self.conns.insert(peer_id, conn.clone());
429426
self.dialer.abort_dial(&peer_id);
430427
let (send_tx, send_rx) = mpsc::channel(SEND_QUEUE_CAP);
@@ -524,9 +521,6 @@ impl Actor {
524521
}
525522
} else {
526523
debug!(peer = ?peer_id, "dial");
527-
if peer_id == self.endpoint.node_id() {
528-
tracing::error!("Trying to dial self, this will fail! and should not happen in the first place !?");
529-
}
530524
self.dialer.queue_dial(peer_id, GOSSIP_ALPN);
531525
// TODO: Enforce max length
532526
self.pending_sends.entry(peer_id).or_default().push(message);

0 commit comments

Comments
 (0)