aquatic_ws_load_test: fix unused variable compiler warnings

This commit is contained in:
Joakim Frostegård 2020-08-13 00:54:14 +02:00
parent 67c346f88e
commit 0aa781a79c

View file

@ -163,9 +163,7 @@ impl Connection {
Err(tungstenite::Error::Io(err)) if err.kind() == ErrorKind::WouldBlock => { Err(tungstenite::Error::Io(err)) if err.kind() == ErrorKind::WouldBlock => {
return false; return false;
}, },
Err(err) => { Err(_) => {
// eprintln!("handle_read_event error: {}", err);
return true; return true;
} }
} }
@ -224,9 +222,7 @@ impl Connection {
Err(tungstenite::Error::Io(err)) if err.kind() == ErrorKind::WouldBlock => { Err(tungstenite::Error::Io(err)) if err.kind() == ErrorKind::WouldBlock => {
false false
} }
Err(err) => { Err(_) => {
// eprintln!("send request error: {:?}", err);
true true
} }
} }