relay work

This commit is contained in:
Christien Rioux
2023-07-14 16:54:29 -04:00
parent 41b9a22595
commit 6c2aaa16c6
3 changed files with 73 additions and 3 deletions

View File

@@ -71,8 +71,8 @@ impl RoutingTable {
let relay_nr_filtered =
relay_nr.filtered_clone(NodeRefFilter::new().with_dial_info_filter(dif));
#[cfg(feature = "network-result-extra")]
log_rtab!(debug "--> Keepalive ping to {:?}", relay_nr_filtered);
//#[cfg(feature = "network-result-extra")]
log_rtab!("--> Keepalive ping to {:?}", relay_nr_filtered);
unord.push(
async move {
@@ -111,6 +111,7 @@ impl RoutingTable {
// Just do a single ping with the best protocol for all the other nodes to check for liveness
for nr in node_refs {
let rpc = rpc.clone();
log_rtab!("--> Validator ping to {:?}", nr);
unord.push(
async move { rpc.rpc_call_status(Destination::direct(nr)).await }
.instrument(Span::current())