remove useless async
This commit is contained in:
parent
c0d4b18df5
commit
c406f447cc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue