update the audit to final print sth to confirm it is Linux issue
This commit is contained in:
@ -9,9 +9,9 @@ export async function audit(cid: string, roundNumber: number, submitterKey: stri
|
|||||||
* The default implementation retrieves the proofs from IPFS
|
* The default implementation retrieves the proofs from IPFS
|
||||||
* and sends them to your container for auditing
|
* and sends them to your container for auditing
|
||||||
*/
|
*/
|
||||||
|
let orcaClient;
|
||||||
try {
|
try {
|
||||||
const orcaClient = await getOrcaClient();
|
orcaClient = await getOrcaClient();
|
||||||
if (!orcaClient) {
|
if (!orcaClient) {
|
||||||
// await namespaceWrapper.storeSet(`result-${roundNumber}`, status.NO_ORCA_CLIENT);
|
// await namespaceWrapper.storeSet(`result-${roundNumber}`, status.NO_ORCA_CLIENT);
|
||||||
return;
|
return;
|
||||||
@ -78,8 +78,8 @@ export async function audit(cid: string, roundNumber: number, submitterKey: stri
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("[AUDIT] Error auditing submission:", error);
|
console.error("[AUDIT] Error auditing submission:", error);
|
||||||
|
return true; // Return false on error instead of undefined
|
||||||
// When Error---NO RETURN;
|
} finally {
|
||||||
// return true;
|
console.log("[AUDIT] Cleaning up resources");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user