Skip to content

Commit

Permalink
remove async keyword for gateway_connection method
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Apr 22, 2024
1 parent a6bc1c6 commit 77c76fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core/src/transport/connection_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl<S: Socket> UdpPacketsListener<S> {
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)
}));
Expand Down Expand Up @@ -350,7 +350,7 @@ impl<S: Socket> UdpPacketsListener<S> {
}
}

async fn gateway_connection(
fn gateway_connection(
&mut self,
remote_intro_packet: PacketData<UnknownEncryption>,
remote_addr: SocketAddr,
Expand Down

0 comments on commit 77c76fc

Please sign in to comment.