Skip to content

Commit

Permalink
fixup: unused async
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Dec 19, 2024
1 parent 27e7215 commit 6dd2a25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions talpid-wireguard/src/ephemeral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async fn config_ephemeral_peers_inner(
// NOTE: This one often fails with multihop on Windows, even though the handshake afterwards
// succeeds. So we try anyway if it fails.
#[cfg(force_wireguard_handshake)]
let _ = establish_tunnel_connection(tunnel, connectivity).await;
let _ = establish_tunnel_connection(tunnel, connectivity);

let ephemeral_private_key = PrivateKey::new_from_random();
let close_obfs_sender = close_obfs_sender.clone();
Expand Down Expand Up @@ -162,7 +162,7 @@ async fn config_ephemeral_peers_inner(
.await?;

#[cfg(force_wireguard_handshake)]
establish_tunnel_connection(tunnel, connectivity).await?;
establish_tunnel_connection(tunnel, connectivity)?;

let entry_ephemeral_peer = request_ephemeral_peer(
retry_attempt,
Expand Down Expand Up @@ -300,7 +300,7 @@ async fn reconfigure_tunnel(
/// Ensure that the WireGuard tunnel works. This is useful after updating the WireGuard config, to
/// force a WireGuard handshake. This should reduce the number of PQ timeouts.
#[cfg(force_wireguard_handshake)]
async fn establish_tunnel_connection(
fn establish_tunnel_connection(
tunnel: &Arc<AsyncMutex<Option<TunnelType>>>,
connectivity: &mut connectivity::Check<connectivity::Cancellable>,
) -> Result<(), CloseMsg> {
Expand Down

0 comments on commit 6dd2a25

Please sign in to comment.