mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
feat: measured oneshots (#3902)
* overseer: remove mut in connector * monitored oneshots * fmt * remove debug log * Update node/metered-channel/src/oneshot.rs Co-authored-by: Andronik Ordian <write@reusable.software> * Update node/metered-channel/src/oneshot.rs Co-authored-by: Andronik Ordian <write@reusable.software> * avoid two Arcs * add expects * alt impl * rework the measured oneshots * address review comments, use `Measurable` where possible * chore/tracing: move `PrettyAuthorities` construction out of tracing macros Co-authored-by: Andronik Ordian <write@reusable.software>
This commit is contained in:
committed by
GitHub
parent
c57a1e7934
commit
3c8e8637ff
@@ -340,12 +340,13 @@ where
|
||||
"Connectivity seems low, we are only connected to {}% of available validators (see debug logs for details)", connected_ratio
|
||||
);
|
||||
}
|
||||
let pretty = PrettyAuthorities(unconnected_authorities);
|
||||
tracing::debug!(
|
||||
target: LOG_TARGET,
|
||||
?connected_ratio,
|
||||
?absolute_connected,
|
||||
?absolute_resolved,
|
||||
unconnected_authorities = %PrettyAuthorities(unconnected_authorities),
|
||||
unconnected_authorities = %pretty,
|
||||
"Connectivity Report"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -340,9 +340,10 @@ fn test_log_output() {
|
||||
m.insert(bob, addrs);
|
||||
m
|
||||
};
|
||||
let pretty = PrettyAuthorities(unconnected_authorities.iter());
|
||||
tracing::debug!(
|
||||
target: LOG_TARGET,
|
||||
unconnected_authorities = %PrettyAuthorities(unconnected_authorities.iter()),
|
||||
unconnected_authorities = %pretty,
|
||||
"Connectivity Report"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user