mirror of
https://github.com/gorules/zen.git
synced 2026-10-04 16:02:18 +00:00
fix: cleanup dt reference
This commit is contained in:
@@ -401,7 +401,6 @@ impl<L: DecisionLoader + 'static, A: CustomNodeAdapter + 'static> DecisionGraph<
|
||||
|
||||
node_request.input.dot_remove("$nodes");
|
||||
res.output.dot_remove("$nodes");
|
||||
res.output.dot_remove("$");
|
||||
|
||||
trace!({
|
||||
input: node_request.input,
|
||||
|
||||
@@ -67,10 +67,16 @@ impl<'a> DecisionTableHandlerInner<'a> {
|
||||
|
||||
self_ref.isolate.clear_references();
|
||||
self_ref.isolate.set_environment(input);
|
||||
match &content.hit_policy {
|
||||
let output = match &content.hit_policy {
|
||||
DecisionTableHitPolicy::First => self_ref.handle_first_hit(&content).await,
|
||||
DecisionTableHitPolicy::Collect => self_ref.handle_collect(&content).await,
|
||||
}
|
||||
};
|
||||
|
||||
if let Ok(ok) = &output {
|
||||
ok.output.dot_remove("$");
|
||||
};
|
||||
|
||||
output
|
||||
}
|
||||
})
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user