more route work

This commit is contained in:
John Smith
2022-10-30 23:23:12 -04:00
parent 50718b7074
commit 68d55a5e77
17 changed files with 312 additions and 211 deletions
+2 -12
View File
@@ -191,18 +191,8 @@ impl RoutingTable {
self.inner.read().routing_domain_for_address(address)
}
pub fn with_route_spec_store_mut<F, R>(&self, f: F) -> R
where
F: FnOnce(&mut RouteSpecStore, &mut RoutingTableInner) -> R,
{
self.inner.write().with_route_spec_store_mut(f)
}
pub fn with_route_spec_store<F, R>(&self, f: F) -> R
where
F: FnOnce(&RouteSpecStore, &RoutingTableInner) -> R,
{
self.inner.read().with_route_spec_store(f)
pub fn route_spec_store(&self) -> RouteSpecStore {
self.inner.read().route_spec_store.clone()
}
pub fn relay_node(&self, domain: RoutingDomain) -> Option<NodeRef> {