Skip to content

Commit

Permalink
Remove more use of #[cfg(daita)]
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Jan 15, 2025
1 parent c0d5e31 commit 2cb7af3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions talpid-wireguard/src/ephemeral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ async fn config_ephemeral_peers_inner(
}

config.exit_peer_mut().psk = exit_ephemeral_peer.psk;
#[cfg(daita)]
if config.daita {
log::trace!("Enabling constant packet size for entry peer");
config.entry_peer.constant_packet_size = true;
Expand All @@ -166,7 +165,6 @@ async fn config_ephemeral_peers_inner(
)
.await?;

#[cfg(daita)]
if config.daita {
let Some(daita) = daita else {
unreachable!("missing DAITA settings");
Expand Down
2 changes: 0 additions & 2 deletions talpid-wireguard/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ impl WireguardMonitor {
let config = config.clone();
let iface_name = iface_name.clone();
tokio::task::spawn(async move {
#[cfg(daita)]
if config.daita {
// TODO: For now, we assume the MTU during the tunnel lifetime.
// We could instead poke maybenot whenever we detect changes to it.
Expand Down Expand Up @@ -1060,7 +1059,6 @@ pub(crate) trait Tunnel: Send {
) -> Pin<Box<dyn Future<Output = std::result::Result<(), TunnelError>> + Send + 'a>>;
#[cfg(daita)]
/// A [`Tunnel`] capable of using DAITA.
#[cfg(daita)]
fn start_daita(&mut self, settings: DaitaSettings) -> std::result::Result<(), TunnelError>;
}

Expand Down

0 comments on commit 2cb7af3

Please sign in to comment.