File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -422,9 +422,6 @@ impl Actor {
422
422
trace ! ( "handle to_actor {msg:?}" ) ;
423
423
match msg {
424
424
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
- }
428
425
self . conns . insert ( peer_id, conn. clone ( ) ) ;
429
426
self . dialer . abort_dial ( & peer_id) ;
430
427
let ( send_tx, send_rx) = mpsc:: channel ( SEND_QUEUE_CAP ) ;
@@ -524,9 +521,6 @@ impl Actor {
524
521
}
525
522
} else {
526
523
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
- }
530
524
self . dialer . queue_dial ( peer_id, GOSSIP_ALPN ) ;
531
525
// TODO: Enforce max length
532
526
self . pending_sends . entry ( peer_id) . or_default ( ) . push ( message) ;
You can’t perform that action at this time.
0 commit comments