mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-11-29 15:36:36 -05:00
repo fix
This commit is contained in:
parent
a77f80a8a9
commit
b3354194e0
12 changed files with 70 additions and 161 deletions
|
|
@ -148,10 +148,13 @@ impl RouteSpecStoreCache {
|
|||
}
|
||||
|
||||
let mut dead = None;
|
||||
self.remote_private_route_set_cache
|
||||
.insert(id, rprinfo, |dead_id, dead_rpri| {
|
||||
self.remote_private_route_set_cache.insert_with_callback(
|
||||
id,
|
||||
rprinfo,
|
||||
|dead_id, dead_rpri| {
|
||||
dead = Some((dead_id, dead_rpri));
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
if let Some((dead_id, dead_rpri)) = dead {
|
||||
// If anything LRUs out, remove from the by-key table
|
||||
|
|
@ -285,12 +288,7 @@ impl RouteSpecStoreCache {
|
|||
pr_pubkey,
|
||||
};
|
||||
|
||||
if let Some(v) = self
|
||||
.compiled_route_cache
|
||||
.insert(key, safety_route, |_k, _v| {
|
||||
// Do nothing on LRU evict
|
||||
})
|
||||
{
|
||||
if let Some(v) = self.compiled_route_cache.insert(key, safety_route) {
|
||||
log_rtab!(error "route cache already contained key: sr_pubkey={:?}, pr_pubkey={:?}", v.public_key, pr_pubkey);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -930,9 +930,7 @@ impl RoutingTableInner {
|
|||
|
||||
pub fn touch_recent_peer(&mut self, node_id: TypedKey, last_connection: ConnectionDescriptor) {
|
||||
self.recent_peers
|
||||
.insert(node_id, RecentPeersEntry { last_connection }, |_k, _v| {
|
||||
// do nothing on lru eviction
|
||||
});
|
||||
.insert(node_id, RecentPeersEntry { last_connection });
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue