File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1731,9 +1731,6 @@ impl Actor {
1731
1731
#[ cfg( not( wasm_browser) ) ]
1732
1732
self . update_direct_addresses ( None ) ;
1733
1733
1734
- // Setup network monitoring
1735
- let mut current_netmon_state = self . netmon_watcher . get ( ) ;
1736
-
1737
1734
#[ cfg( not( wasm_browser) ) ]
1738
1735
let mut direct_addr_heartbeat_timer = time:: interval ( HEARTBEAT_INTERVAL ) ;
1739
1736
@@ -1871,9 +1868,13 @@ impl Actor {
1871
1868
self . msock. metrics. magicsock. actor_tick_other. inc( ) ;
1872
1869
continue ;
1873
1870
} ;
1874
- let is_major = state. is_major_change( & current_netmon_state) ;
1875
- current_netmon_state = state;
1876
- trace!( "tick: link change {}" , is_major) ;
1871
+ let is_major = state. is_major_change( & state) ;
1872
+ event!(
1873
+ target: "iroh::_events::link_change" ,
1874
+ Level :: DEBUG ,
1875
+ ?state,
1876
+ is_major
1877
+ ) ;
1877
1878
self . msock. metrics. magicsock. actor_link_change. inc( ) ;
1878
1879
self . handle_network_change( is_major) . await ;
1879
1880
}
You can’t perform that action at this time.
0 commit comments