Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
correct some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
musitdev committed Mar 20, 2024
1 parent aeb2ce9 commit 6ad9c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/node/src/networking/p2p/pea2pea.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl P2P {
}

// Work if only one connect is done at a time.
//Peer can be fail because they was 2 simultaneous connection. One is fail and the orher is ok.
// Peer can be fail because they was 2 simultaneous connection. One is fail and the orher is ok.
pub async fn connect(&self, addr: SocketAddr) -> (BTreeSet<SocketAddr>, BTreeSet<SocketAddr>) {
let mut connected_peers = BTreeSet::new();
let mut failed_peers = BTreeSet::new();
Expand Down Expand Up @@ -583,7 +583,7 @@ mod tests {
// but Peer1 and Peer2 are connected
#[tokio::test]
async fn test_one_peer_fail() {
//start_logger(LevelFilter::ERROR);
// Start_logger(LevelFilter::ERROR);

let (peer1, tx_sender1, mut tx_receiver1) = create_peer("peer1").await;
let (peer2, tx_sender2, mut tx_receiver2) = create_faulty_peer("peer2").await;
Expand Down

0 comments on commit 6ad9c5c

Please sign in to comment.