🔇 remove debugging println
parent
814fee2bd5
commit
5665f484a2
|
@ -71,8 +71,6 @@ Use a longer timeout if some servers need longer than 500 ms to respond:
|
||||||
lookaround client --timeout-ms 1000
|
lookaround client --timeout-ms 1000
|
||||||
```
|
```
|
||||||
|
|
||||||
For less common uses, see [the command-line documentation.](docs/cli.md)
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
Pull requests are welcome. This is a hobby project, so I may reject
|
Pull requests are welcome. This is a hobby project, so I may reject
|
||||||
contributions that are too big to review.
|
contributions that are too big to review.
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
# Command-line args
|
|
||||||
|
|
||||||
|
|
|
@ -97,8 +97,6 @@ async fn listen_for_responses (
|
||||||
socket: &UdpSocket,
|
socket: &UdpSocket,
|
||||||
peers: &mut HashMap <SocketAddr, ServerResponse>
|
peers: &mut HashMap <SocketAddr, ServerResponse>
|
||||||
) {
|
) {
|
||||||
let start_time = Instant::now ();
|
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let (msgs, remote_addr) = match recv_msg_from (socket).await {
|
let (msgs, remote_addr) = match recv_msg_from (socket).await {
|
||||||
Err (_) => continue,
|
Err (_) => continue,
|
||||||
|
@ -118,9 +116,6 @@ async fn listen_for_responses (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if peers.insert (remote_addr, resp).is_none () {
|
peers.insert (remote_addr, resp);
|
||||||
let now = Instant::now ();
|
|
||||||
// println! ("Added peer at {} ms", (now - start_time).as_millis ());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue