Skip to content

Commit 8dfdfaf

Browse files
committed
fix(coprocessor): sns-worker, silent fetch error reported by Claude
1 parent e925694 commit 8dfdfaf

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

coprocessor/fhevm-engine/sns-worker/src/aws_upload.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@ async fn fetch_pending_uploads(
559559
} else {
560560
error!(handle = hex::encode(&handle), "Missing ciphertext");
561561
}
562+
} else {
563+
warn!(handle = hex::encode(&handle), "Failed to fetch ciphertext");
562564
}
563565
}
564566

@@ -584,6 +586,11 @@ async fn fetch_pending_uploads(
584586
} else {
585587
error!(handle = hex::encode(&handle), "Missing ciphertext128");
586588
}
589+
} else {
590+
warn!(
591+
handle = hex::encode(&handle),
592+
"Failed to fetch ciphertext128"
593+
);
587594
}
588595
}
589596

coprocessor/fhevm-engine/sns-worker/src/tests/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ async fn run_batch_computations(
225225
info!(elapsed = ?elapsed, batch_size, "Batch execution completed");
226226

227227
// Assert that all ciphertext128 objects are uploaded to S3
228-
assert_ciphertext_s3_object_count(test_env, bucket128, batch_size as i64).await;
229-
assert_ciphertext_s3_object_count(test_env, bucket64, batch_size as i64).await;
228+
assert_ciphertext_s3_object_count(test_env, bucket128, 2 * batch_size as i64).await;
229+
assert_ciphertext_s3_object_count(test_env, bucket64, 2 * batch_size as i64).await;
230230

231231
anyhow::Result::<()>::Ok(())
232232
}

0 commit comments

Comments
 (0)