Skip to content

Commit

Permalink
fix: pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
morph-dev committed Feb 4, 2025
1 parent da5ae3e commit d50d831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ impl<const N: usize, P: ConnectionPeer> Connection<N, P> {
mut writes: mpsc::UnboundedReceiver<Write>,
mut shutdown: oneshot::Receiver<()>,
) -> io::Result<()> {
tracing::debug!("uTP conn starting... {:?}", self.cid.peer_id);
tracing::debug!("uTP conn starting... {:?}", self.peer);

// If we are the initiating endpoint, then send the SYN. If we are the accepting endpoint,
// then send the SYN-ACK.
Expand Down
4 changes: 2 additions & 2 deletions src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ where
let packet = match Packet::decode(&buf[..n]) {
Ok(pkt) => pkt,
Err(..) => {
tracing::warn!(?peer_id, "unable to decode uTP packet");
tracing::warn!(?peer, "unable to decode uTP packet");
continue;
}
};
Expand All @@ -115,7 +115,7 @@ where
}
None => {
if std::matches!(packet.packet_type(), PacketType::Syn) {
let cid = cid_from_packet::<P>(&packet, peer_id, IdType::RecvId);
let cid = acc_cid;

// If there was an awaiting connection with the CID, then
// create a new stream for that connection. Otherwise, add the
Expand Down

0 comments on commit d50d831

Please sign in to comment.