remove useless async

This commit is contained in:
GroovieGermanikus 2023-06-27 16:55:38 +02:00
parent c0d4b18df5
commit c406f447cc
1 changed files with 30 additions and 34 deletions

View File

@ -84,7 +84,6 @@ impl QuicForwardProxy {
async fn handle_connection(connecting: Connecting, exit_signal: Arc<AtomicBool>, validator_identity: Arc<Keypair>) -> anyhow::Result<()> {
let connection = connecting.await?;
debug!("inbound connection established, remote {connection}", connection = connection.remote_address());
async {
loop {
let maybe_stream = connection.accept_uni().await;
let mut recv_stream = match maybe_stream {
@ -122,9 +121,6 @@ async fn handle_connection(connecting: Connecting, exit_signal: Arc<AtomicBool>,
} // -- loop
}
.await?;
Ok(())
}
mod test {
use std::str::FromStr;