🔇 remove debugging println

main
_ 2021-12-09 15:49:23 +00:00
parent 814fee2bd5
commit 5665f484a2
3 changed files with 1 additions and 11 deletions

View File

@ -71,8 +71,6 @@ Use a longer timeout if some servers need longer than 500 ms to respond:
lookaround client --timeout-ms 1000
```
For less common uses, see [the command-line documentation.](docs/cli.md)
## Contributing
Pull requests are welcome. This is a hobby project, so I may reject
contributions that are too big to review.

View File

@ -1,3 +0,0 @@
# Command-line args

View File

@ -97,8 +97,6 @@ async fn listen_for_responses (
socket: &UdpSocket,
peers: &mut HashMap <SocketAddr, ServerResponse>
) {
let start_time = Instant::now ();
loop {
let (msgs, remote_addr) = match recv_msg_from (socket).await {
Err (_) => continue,
@ -118,9 +116,6 @@ async fn listen_for_responses (
}
}
if peers.insert (remote_addr, resp).is_none () {
let now = Instant::now ();
// println! ("Added peer at {} ms", (now - start_time).as_millis ());
}
peers.insert (remote_addr, resp);
}
}