From 114aef059b1476aa67f19196e16f9047ffa30542 Mon Sep 17 00:00:00 2001 From: HermanL02 Date: Wed, 7 May 2025 03:02:14 -0300 Subject: [PATCH] update the audit to final print sth to confirm it is Linux issue --- worker/src/task/3-audit.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/worker/src/task/3-audit.ts b/worker/src/task/3-audit.ts index 796441b..9677d77 100644 --- a/worker/src/task/3-audit.ts +++ b/worker/src/task/3-audit.ts @@ -9,9 +9,9 @@ export async function audit(cid: string, roundNumber: number, submitterKey: stri * The default implementation retrieves the proofs from IPFS * and sends them to your container for auditing */ - + let orcaClient; try { - const orcaClient = await getOrcaClient(); + orcaClient = await getOrcaClient(); if (!orcaClient) { // await namespaceWrapper.storeSet(`result-${roundNumber}`, status.NO_ORCA_CLIENT); return; @@ -78,8 +78,8 @@ export async function audit(cid: string, roundNumber: number, submitterKey: stri } } catch (error) { console.error("[AUDIT] Error auditing submission:", error); - - // When Error---NO RETURN; - // return true; + return true; // Return false on error instead of undefined + } finally { + console.log("[AUDIT] Cleaning up resources"); } }