Skip to content

Commit e73bed4

Browse files
committed
fixup: and
1 parent e6015c8 commit e73bed4

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

talpid-wireguard/src/lib.rs

-4
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,6 @@ impl WireguardMonitor {
753753
log_path,
754754
tun_provider,
755755
routes,
756-
#[cfg(daita)]
757-
resource_dir,
758756
connectivity_check,
759757
)
760758
.map_err(Error::TunnelError)?
@@ -765,8 +763,6 @@ impl WireguardMonitor {
765763
log_path,
766764
tun_provider,
767765
routes,
768-
#[cfg(daita)]
769-
resource_dir,
770766
connectivity_check,
771767
)
772768
.map_err(Error::TunnelError)?

talpid-wireguard/src/wireguard_go/mod.rs

-10
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ impl WgGoTunnel {
114114
let log_path = state._logging_context.path.clone();
115115
let tun_provider = Arc::clone(&state.tun_provider);
116116
let routes = config.get_tunnel_destinations();
117-
#[cfg(daita)]
118-
let resource_dir = state.resource_dir.clone();
119117

120118
match self {
121119
WgGoTunnel::Multihop(state) if !config.is_multihop() => {
@@ -125,7 +123,6 @@ impl WgGoTunnel {
125123
log_path.as_deref(),
126124
tun_provider,
127125
routes,
128-
&resource_dir,
129126
connectivity_checker,
130127
)
131128
}
@@ -137,7 +134,6 @@ impl WgGoTunnel {
137134
log_path.as_deref(),
138135
tun_provider,
139136
routes,
140-
&resource_dir,
141137
connectivity_checker,
142138
)
143139
}
@@ -297,7 +293,6 @@ impl WgGoTunnel {
297293
log_path: Option<&Path>,
298294
tun_provider: Arc<Mutex<TunProvider>>,
299295
routes: impl Iterator<Item = IpNetwork>,
300-
#[cfg(daita)] resource_dir: &Path,
301296
mut connectivity_check: connectivity::Check<connectivity::Cancellable>,
302297
) -> Result<Self> {
303298
let (mut tunnel_device, tunnel_fd) =
@@ -328,8 +323,6 @@ impl WgGoTunnel {
328323
_logging_context: logging_context,
329324
tun_provider,
330325
#[cfg(daita)]
331-
resource_dir: resource_dir.to_owned(),
332-
#[cfg(daita)]
333326
config: config.clone(),
334327
connectivity_checker: None,
335328
});
@@ -347,7 +340,6 @@ impl WgGoTunnel {
347340
log_path: Option<&Path>,
348341
tun_provider: Arc<Mutex<TunProvider>>,
349342
routes: impl Iterator<Item = IpNetwork>,
350-
#[cfg(daita)] resource_dir: &Path,
351343
mut connectivity_check: connectivity::Check<connectivity::Cancellable>,
352344
) -> Result<Self> {
353345
let (mut tunnel_device, tunnel_fd) =
@@ -394,8 +386,6 @@ impl WgGoTunnel {
394386
_logging_context: logging_context,
395387
tun_provider,
396388
#[cfg(daita)]
397-
resource_dir: resource_dir.to_owned(),
398-
#[cfg(daita)]
399389
config: config.clone(),
400390
connectivity_checker: None,
401391
});

0 commit comments

Comments
 (0)