Skip to content

Commit 0d5d6bf

Browse files
cleaned evaluator.rs
1 parent a930f54 commit 0d5d6bf

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

rust/cocoindex/src/execution/evaluator.rs

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,6 @@ async fn evaluate_op_scope(
370370
AnalyzedReactiveOp::Transform(op) => {
371371
let transform_key = format!("transform/{}{}", op_scope.scope_qualifier, op.name);
372372

373-
// eprintln!("🔍 DEBUG: Transform op '{}' (function: {}) starting, timeout: {:?}",
374-
// op.name, op.op_kind, op.function_exec_info.timeout);
375-
376373
// Track transform operation start
377374
if let Some(ref op_stats) = operation_in_process_stats {
378375
op_stats.start_processing(&transform_key, 1);
@@ -393,8 +390,6 @@ async fn evaluate_op_scope(
393390
let op_kind_for_warning = op.op_kind.clone();
394391
let warn_handle = tokio::spawn(async move {
395392
tokio::time::sleep(warn_duration).await;
396-
// eprintln!("WARNING: Function '{}' is taking longer than 30s", op_name_for_warning);
397-
// warn!("Function '{}' is taking longer than 30s", op_name_for_warning);
398393
eprintln!(
399394
"⚠️ WARNING: Function '{}' ({}) is taking longer than 30s",
400395
op_kind_for_warning, op_name_for_warning
@@ -427,7 +422,6 @@ async fn evaluate_op_scope(
427422
let timeout_result = tokio::time::timeout(timeout_duration, eval_future).await;
428423
if timeout_result.is_err() {
429424
Err(anyhow!(
430-
// "Function '{}' timed out after {} seconds",
431425
"Function '{}' ({}) timed out after {} seconds",
432426
op.op_kind,
433427
op.name,
@@ -445,7 +439,6 @@ async fn evaluate_op_scope(
445439
let timeout_result = tokio::time::timeout(timeout_duration, eval_future).await;
446440
if timeout_result.is_err() {
447441
Err(anyhow!(
448-
// "Function '{}' timed out after {} seconds",
449442
"Function '{}' ({}) timed out after {} seconds",
450443
op.op_kind,
451444
op.name,
@@ -466,40 +459,6 @@ async fn evaluate_op_scope(
466459
}
467460

468461
result.with_context(|| format!("Evaluating Transform op `{}`", op.name))?
469-
// let result = if op.function_exec_info.enable_cache {
470-
// let output_value_cell = memory.get_cache_entry(
471-
// || {
472-
// Ok(op
473-
// .function_exec_info
474-
// .fingerprinter
475-
// .clone()
476-
// .with(&input_values)?
477-
// .into_fingerprint())
478-
// },
479-
// &op.function_exec_info.output_type,
480-
// /*ttl=*/ None,
481-
// )?;
482-
// evaluate_with_cell(output_value_cell.as_ref(), move || {
483-
// op.executor.evaluate(input_values)
484-
// })
485-
// .await
486-
// .and_then(|v| head_scope.define_field(&op.output, &v))
487-
// } else {
488-
// op.executor
489-
// .evaluate(input_values)
490-
// .await
491-
// .and_then(|v| head_scope.define_field(&op.output, &v))
492-
// }
493-
// .with_context(|| format!("Evaluating Transform op `{}`", op.name,));
494-
495-
// // Track transform operation completion
496-
// if let Some(ref op_stats) = operation_in_process_stats {
497-
// let transform_key =
498-
// format!("transform/{}{}", op_scope.scope_qualifier, op.name);
499-
// op_stats.finish_processing(&transform_key, 1);
500-
// }
501-
502-
// result?
503462
}
504463

505464
AnalyzedReactiveOp::ForEach(op) => {

0 commit comments

Comments
 (0)