Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ligustah committed May 1, 2024
1 parent b78e74b commit c7bef07
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/p2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,28 +326,10 @@ impl SwarmController {
}
SwarmEvent::ConnectionEstablished {
peer_id,
endpoint,
connection_id,
..
} => {
self.reject_connection_if_over_max(connection_id);

// match endpoint {
// ConnectedPoint::Dialer { address, .. } => {
// let addr = address;
// let b = self.swarm.behaviour_mut();
// b.kad.add_address(&peer_id, addr.clone());
// tracing::info!("Dialed: {:?}", addr);
// }
// ConnectedPoint::Listener {
// local_addr,
// send_back_addr,
// } => {
// let addr = send_back_addr.with(Protocol::P2p(peer_id));
// tracing::info!("Was connected to by: {:?} local: {local_addr}", addr);
// }
// }

tracing::info!("Connection established with peer: {:?}", peer_id);
tracing::info!(counter.connections = 1);
}
Expand Down

0 comments on commit c7bef07

Please sign in to comment.