This commit is contained in:
John Smith
2022-10-31 22:03:05 -04:00
parent 68d55a5e77
commit 5ae0bd834c
5 changed files with 124 additions and 58 deletions

View File

@@ -432,7 +432,7 @@ impl RPCProcessor {
// Compile the safety route with the private route
let compiled_route: CompiledRoute = match rss
.compile_safety_route(rti, routing_table, safety_selection, private_route)
.compile_safety_route(safety_selection, private_route)
.map_err(RPCError::internal)?
{
Some(cr) => cr,

View File

@@ -94,16 +94,16 @@ impl RPCProcessor {
routing_domain,
dial_info.clone(),
);
let will_validate_dial_info_filter = |_rti, e: &BucketEntryInner| {
let will_validate_dial_info_filter = Box::new(move |_rti, e: &BucketEntryInner| {
if let Some(status) = &e.node_status(routing_domain) {
status.will_validate_dial_info()
} else {
true
}
};
});
let filter = RoutingTable::combine_entry_filters(
outbound_dial_info_entry_filter,
will_validate_dial_info_filter,
will_validate_dial_info_filter, fuck this shit. do it tomorrow.
);
// Find nodes matching filter to redirect this to