Skip to content

Commit

Permalink
fix variable naming on wait_for_client..
Browse files Browse the repository at this point in the history
the `SocketAddr` is not a client, but the socket where we will listen to
also, `listner` is a typo
  • Loading branch information
plebhash authored and jbesraa committed Jan 6, 2025
1 parent dfda1ec commit 1378977
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/tests-integration/lib/sniffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,11 @@ impl Sniffer {
}
}

async fn wait_for_client(client: SocketAddr) -> TcpStream {
let listner = TcpListener::bind(client)
async fn wait_for_client(listen_socket: SocketAddr) -> TcpStream {
let listener = TcpListener::bind(listen_socket)
.await
.expect("Impossible to listen on given address");
if let Ok((stream, _)) = listner.accept().await {
if let Ok((stream, _)) = listener.accept().await {
stream
} else {
panic!("Impossible to accept dowsntream connection")
Expand Down

0 comments on commit 1378977

Please sign in to comment.