fix keepalives
This commit is contained in:
@@ -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();
|
||||
|
@@ -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(())
|
||||
|
Reference in New Issue
Block a user