some debugging

This commit is contained in:
Christien Rioux 2023-09-28 15:44:06 -04:00
parent b9505c031c
commit bbfd21edee

View File

@ -1,5 +1,6 @@
use super::*;
#[derive(Debug)]
enum RoutingDomainChange {
ClearDialInfoDetails {
address_type: Option<AddressType>,
@ -135,6 +136,9 @@ impl RoutingDomainEditor {
None
};
// Debug print
log_rtab!(debug "[{:?}] COMMIT: {:?}", self.routing_domain, self.changes);
// Apply changes
let mut changed = false;
{
@ -247,10 +251,6 @@ impl RoutingDomainEditor {
}
}
}
if changed {
// Clear our 'peer info' cache, the peerinfo for this routing domain will get regenerated next time it is asked for
detail.common_mut().clear_cache()
}
});
if changed {
// Allow signed node info updates at same timestamp for otherwise dead nodes if our network has changed