@@ -6,7 +6,7 @@ use std::{
6
6
sync:: { Arc , Weak } ,
7
7
time:: Duration ,
8
8
} ;
9
- use talpid_routing:: { get_best_default_route, CallbackHandle , EventType , RouteManagerHandle } ;
9
+ use talpid_routing:: { get_best_default_route, CallbackHandle , EventType , RouteManager } ;
10
10
use talpid_types:: { net:: Connectivity , ErrorExt } ;
11
11
use talpid_windows:: net:: AddressFamily ;
12
12
@@ -29,7 +29,7 @@ unsafe impl Send for BroadcastListener {}
29
29
impl BroadcastListener {
30
30
pub async fn start (
31
31
notify_tx : UnboundedSender < Connectivity > ,
32
- route_manager_handle : RouteManagerHandle ,
32
+ route_manager_handle : RouteManager ,
33
33
mut power_mgmt_rx : PowerManagementListener ,
34
34
) -> Result < Self , Error > {
35
35
let notify_tx = Arc :: new ( notify_tx) ;
@@ -107,7 +107,7 @@ impl BroadcastListener {
107
107
/// until after `WinNet_DeactivateConnectivityMonitor` has been called.
108
108
async fn setup_network_connectivity_listener (
109
109
system_state : Arc < Mutex < SystemState > > ,
110
- route_manager_handle : RouteManagerHandle ,
110
+ route_manager_handle : RouteManager ,
111
111
) -> Result < CallbackHandle , Error > {
112
112
let change_handle = route_manager_handle
113
113
. add_default_route_change_callback ( Box :: new ( move |event, addr_family| {
@@ -202,7 +202,7 @@ pub type MonitorHandle = BroadcastListener;
202
202
203
203
pub async fn spawn_monitor (
204
204
sender : UnboundedSender < Connectivity > ,
205
- route_manager_handle : RouteManagerHandle ,
205
+ route_manager_handle : RouteManager ,
206
206
) -> Result < MonitorHandle , Error > {
207
207
let power_mgmt_rx = crate :: window:: PowerManagementListener :: new ( ) ;
208
208
BroadcastListener :: start ( sender, route_manager_handle, power_mgmt_rx) . await
0 commit comments