fix reverse_find_node

This commit is contained in:
John Smith 2022-07-05 11:22:54 -04:00
parent 8fa58f1205
commit 539f2085e9
2 changed files with 7 additions and 10 deletions

View File

@ -1,4 +1,5 @@
use super::*; use super::*;
use crate::*;
use libc::{ use libc::{
close, freeifaddrs, getifaddrs, if_nametoindex, ifaddrs, ioctl, pid_t, sockaddr, sockaddr_in6, close, freeifaddrs, getifaddrs, if_nametoindex, ifaddrs, ioctl, pid_t, sockaddr, sockaddr_in6,
socket, sysctl, time_t, AF_INET6, CTL_NET, IFF_BROADCAST, IFF_LOOPBACK, IFF_RUNNING, IFNAMSIZ, socket, sysctl, time_t, AF_INET6, CTL_NET, IFF_BROADCAST, IFF_LOOPBACK, IFF_RUNNING, IFNAMSIZ,

View File

@ -471,16 +471,12 @@ impl RoutingTable {
// Ask each node near us to find us as well // Ask each node near us to find us as well
if wide { if wide {
for closest_nr in closest_nodes { for closest_nr in closest_nodes {
match self.find_self(closest_nr.clone()).await { if let Err(e) = self.find_self(closest_nr.clone()).await {
Err(e) => { log_rtab!(error
log_rtab!(error "reverse_find_node: closest node find_self failed for {:?}: {}",
"reverse_find_node: closest node find_self failed for {:?}: {}", &closest_nr, e
&closest_nr, e );
); }
return;
}
Ok(v) => v,
};
} }
} }
} }