Skip to content

Commit

Permalink
rebase cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Jul 22, 2024
1 parent 3cf985a commit ef259dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions iroh-net/src/magicsock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,7 @@ impl Actor {
"tick: direct addr heartbeat {} direct addrs",
self.msock.node_map.node_count(),
);
inc!(Metrics, actor_tick_endpoint_heartbeat);
inc!(Metrics, actor_tick_direct_addr_heartbeat);
// TODO: this might trigger too many packets at once, pace this

self.msock.node_map.prune_inactive();
Expand All @@ -1786,7 +1786,7 @@ impl Actor {
_ = direct_addr_update_receiver.changed() => {
let reason = *direct_addr_update_receiver.borrow();
trace!("tick: direct addr update receiver {:?}", reason);
inc!(Metrics, actor_tick_endpoints_update_receiver);
inc!(Metrics, actor_tick_direct_addr_update_receiver);
if let Some(reason) = reason {
self.update_direct_addrs(reason).await;
}
Expand Down
10 changes: 5 additions & 5 deletions iroh-net/src/magicsock/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ pub struct Metrics {
pub actor_tick_msg: Counter,
pub actor_tick_re_stun: Counter,
pub actor_tick_portmap_changed: Counter,
pub actor_tick_endpoint_heartbeat: Counter,
pub actor_tick_endpoints_update_receiver: Counter,
pub actor_tick_direct_addr_heartbeat: Counter,
pub actor_tick_direct_addr_update_receiver: Counter,
pub actor_tick_nodes_timer: Counter,
pub actor_link_change: Counter,
pub actor_tick_other: Counter,
Expand Down Expand Up @@ -142,9 +142,9 @@ impl Default for Metrics {
actor_tick_msg: Counter::new("actor_tick_msg"),
actor_tick_re_stun: Counter::new("actor_tick_re_stun"),
actor_tick_portmap_changed: Counter::new("actor_tick_portmap_changed"),
actor_tick_endpoint_heartbeat: Counter::new("actor_tick_endpoint_heartbeat"),
actor_tick_endpoints_update_receiver: Counter::new(
"actor_tick_endpoints_update_receiver",
actor_tick_direct_addr_heartbeat: Counter::new("actor_tick_direct_addr_heartbeat"),
actor_tick_direct_addr_update_receiver: Counter::new(
"actor_tick_direct_addr_update_receiver",
),
actor_tick_nodes_timer: Counter::new("actor_tick_nodes_timer"),
actor_link_change: Counter::new("actor_link_change"),
Expand Down

0 comments on commit ef259dc

Please sign in to comment.