Skip to content

Commit bbe0582

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

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
@@ -564,6 +564,8 @@ async fn fetch_pending_uploads(
564564
} else {
565565
error!(handle = hex::encode(&handle), "Missing ciphertext");
566566
}
567+
} else {
568+
error!(handle = hex::encode(&handle), "Failed to fetch ciphertext");
567569
}
568570
}
569571

@@ -589,6 +591,11 @@ async fn fetch_pending_uploads(
589591
} else {
590592
error!(handle = hex::encode(&handle), "Missing ciphertext128");
591593
}
594+
} else {
595+
error!(
596+
handle = hex::encode(&handle),
597+
"Failed to fetch ciphertext128"
598+
);
592599
}
593600
}
594601

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)