fix keepalives

This commit is contained in:
John Smith
2023-07-14 14:21:00 -04:00
parent 742b8e09a5
commit 41b9a22595
10 changed files with 160 additions and 105 deletions

View File

@@ -814,8 +814,8 @@ impl Network {
}
// commit routing table edits
editor_public_internet.commit().await;
editor_local_network.commit().await;
editor_public_internet.commit();
editor_local_network.commit();
info!("network started");
self.inner.lock().network_started = true;
@@ -868,12 +868,12 @@ impl Network {
let mut editor = routing_table.edit_routing_domain(RoutingDomain::PublicInternet);
editor.clear_dial_info_details();
editor.set_network_class(None);
editor.commit().await;
editor.commit();
let mut editor = routing_table.edit_routing_domain(RoutingDomain::LocalNetwork);
editor.clear_dial_info_details();
editor.set_network_class(None);
editor.commit().await;
editor.commit();
// Reset state including network class
*self.inner.lock() = Self::new_inner();

View File

@@ -176,7 +176,7 @@ impl DiscoveryContext {
.routing_table
.find_fast_public_nodes_filtered(node_count, filters);
if peers.is_empty() {
log_net!(
log_net!(debug
"no external address detection peers of type {:?}:{:?}",
protocol_type,
address_type
@@ -195,7 +195,7 @@ impl DiscoveryContext {
return Some((sa, peer));
}
}
log_net!("no peers responded with an external address");
log_net!(debug "no peers responded with an external address");
None
}
@@ -943,8 +943,8 @@ impl Network {
punish();
}
} else {
// Send updates to everyone
editor.commit().await;
// Commit updates
editor.commit();
}
Ok(())