From 77c76fcb7bbfe896f58d35f9bebe65d75004941f Mon Sep 17 00:00:00 2001 From: Al Liu Date: Mon, 22 Apr 2024 16:48:09 +0800 Subject: [PATCH] remove async keyword for gateway_connection method --- crates/core/src/transport/connection_handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/core/src/transport/connection_handler.rs b/crates/core/src/transport/connection_handler.rs index 805875251..a7ab6fe5a 100644 --- a/crates/core/src/transport/connection_handler.rs +++ b/crates/core/src/transport/connection_handler.rs @@ -254,7 +254,7 @@ impl UdpPacketsListener { continue; } let packet_data = PacketData::from_buf(&buf[..size]); - let gw_ongoing_connection = self.gateway_connection(packet_data, remote_addr, gw_outbound_tx.clone()).await; + let gw_ongoing_connection = self.gateway_connection(packet_data, remote_addr, gw_outbound_tx.clone()); let task = tokio::spawn(gw_ongoing_connection.map_err(move |error| { (error, remote_addr) })); @@ -350,7 +350,7 @@ impl UdpPacketsListener { } } - async fn gateway_connection( + fn gateway_connection( &mut self, remote_intro_packet: PacketData, remote_addr: SocketAddr,