Skip to content

Commit 5c1d51b

Browse files
authored
Merge 3f8c2d3 into a8485ad
2 parents a8485ad + 3f8c2d3 commit 5c1d51b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

iroh/src/magicsock.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,9 +1731,6 @@ impl Actor {
17311731
#[cfg(not(wasm_browser))]
17321732
self.update_direct_addresses(None);
17331733

1734-
// Setup network monitoring
1735-
let mut current_netmon_state = self.netmon_watcher.get();
1736-
17371734
#[cfg(not(wasm_browser))]
17381735
let mut direct_addr_heartbeat_timer = time::interval(HEARTBEAT_INTERVAL);
17391736

@@ -1871,9 +1868,13 @@ impl Actor {
18711868
self.msock.metrics.magicsock.actor_tick_other.inc();
18721869
continue;
18731870
};
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+
);
18771878
self.msock.metrics.magicsock.actor_link_change.inc();
18781879
self.handle_network_change(is_major).await;
18791880
}

0 commit comments

Comments
 (0)