summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim@hulthe.net>2025-05-28 16:30:53 +0200
committerJoakim Hulthe <joakim@hulthe.net>2025-05-28 16:30:53 +0200
commit41b22c4f78467c528da6de27620a40dcd39576d9 (patch)
tree472e0b9e14a8ca62c176408eb9de11f6071b6ec8
parente1e1a83e0f466f309b71fa308d00fa1e026c0dd2 (diff)
downloadmullvadvpn-41b22c4f78467c528da6de27620a40dcd39576d9.tar.xz
mullvadvpn-41b22c4f78467c528da6de27620a40dcd39576d9.zip
Replace spawn_blocking with spawn
-rw-r--r--talpid-routing/src/unix/macos/default_routes.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/talpid-routing/src/unix/macos/default_routes.rs b/talpid-routing/src/unix/macos/default_routes.rs
index 27594b5251..9338049720 100644
--- a/talpid-routing/src/unix/macos/default_routes.rs
+++ b/talpid-routing/src/unix/macos/default_routes.rs
@@ -4,10 +4,7 @@ use futures::{
channel::mpsc::{self, UnboundedReceiver, UnboundedSender},
select_biased, FutureExt, StreamExt,
};
-use tokio::{
- runtime,
- time::{sleep_until, Instant},
-};
+use tokio::time::{sleep_until, Instant};
use crate::imp::imp::interface::NetworkServiceDetails;
@@ -65,9 +62,7 @@ impl DefaultRouteMonitor {
primary_interfaces: IpMap::new(),
};
- tokio::task::spawn_blocking(move || {
- runtime::Handle::current().block_on(monitor.run());
- });
+ tokio::task::spawn(monitor.run());
let route_v4_rx =
filter_duplicates(delay_nones_except_first(NO_ROUTE_GRACE_TIME, route_v4_rx));