Skip to content

Commit

Permalink
Rename sniffer channel variables..
Browse files Browse the repository at this point in the history
the original naming was confusing copypasta
  • Loading branch information
plebhash authored and jbesraa committed Jan 9, 2025
1 parent 9286601 commit 7f0167c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roles/tests-integration/lib/sniffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ impl Sniffer {
let responder =
Responder::from_authority_kp(&pub_key, &prv_key, std::time::Duration::from_secs(10000))
.unwrap();
if let Ok((receiver_from_client, send_to_client, _, _)) =
if let Ok((receiver_from_client, sender_to_client, _, _)) =
Connection::new::<'static, AnyMessage<'static>>(
stream,
HandshakeRole::Responder(responder),
)
.await
{
Some((receiver_from_client, send_to_client))
Some((receiver_from_client, sender_to_client))
} else {
None
}
Expand All @@ -205,14 +205,14 @@ impl Sniffer {
stream: TcpStream,
) -> Option<(Receiver<MessageFrame>, Sender<MessageFrame>)> {
let initiator = Initiator::without_pk().expect("This fn call can not fail");
if let Ok((receiver_from_client, send_to_client, _, _)) =
if let Ok((receiver_from_server, sender_to_server, _, _)) =
Connection::new::<'static, AnyMessage<'static>>(
stream,
HandshakeRole::Initiator(initiator),
)
.await
{
Some((receiver_from_client, send_to_client))
Some((receiver_from_server, sender_to_server))
} else {
None
}
Expand Down

0 comments on commit 7f0167c

Please sign in to comment.