address filter cleanout during restart

This commit is contained in:
Christien Rioux 2024-05-21 14:57:34 -04:00
parent 23d160a525
commit 95bccaff46
2 changed files with 3 additions and 1 deletions

View File

@ -105,6 +105,8 @@ impl AddressFilter {
// When the network restarts, some of the address filter can be cleared // When the network restarts, some of the address filter can be cleared
pub fn restart(&self) { pub fn restart(&self) {
let mut inner = self.inner.lock(); let mut inner = self.inner.lock();
inner.conn_count_by_ip4.clear();
inner.conn_count_by_ip6_prefix.clear();
inner.dial_info_failures.clear(); inner.dial_info_failures.clear();
} }

View File

@ -286,7 +286,7 @@ impl RoutingTable {
{ {
Ok(NodeContactMethod::Direct(v)) => v, Ok(NodeContactMethod::Direct(v)) => v,
Ok(v) => { Ok(v) => {
log_rtab!(warn "invalid contact method for bootstrap, ignoring peer: {:?}", v); log_rtab!(debug "invalid contact method for bootstrap, ignoring peer: {:?}", v);
// let _ = routing_table // let _ = routing_table
// .network_manager() // .network_manager()
// .get_node_contact_method(nr.clone()); // .get_node_contact_method(nr.clone());