mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 02:47:45 +08:00
refactor ai serving modules and crates
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
use aether_contracts::ExecutionPlan;
|
||||
use serde_json::Value;
|
||||
|
||||
use super::PlannerAppState;
|
||||
|
||||
impl<'a> PlannerAppState<'a> {
|
||||
pub(crate) async fn mark_unused_local_candidate_items<T, FPlan, FContext>(
|
||||
self,
|
||||
remaining: Vec<T>,
|
||||
plan: FPlan,
|
||||
report_context: FContext,
|
||||
) where
|
||||
FPlan: Fn(&T) -> &ExecutionPlan,
|
||||
FContext: Fn(&T) -> Option<&Value>,
|
||||
{
|
||||
crate::executor::mark_unused_local_candidate_items(
|
||||
self.app(),
|
||||
remaining,
|
||||
plan,
|
||||
report_context,
|
||||
)
|
||||
.await
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user