From 4455c4929bb51afc62bb7f9e5e89365d7aa3f6c1 Mon Sep 17 00:00:00 2001 From: Matthew Sevey Date: Tue, 26 Apr 2022 16:50:42 -0400 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Karol Wypchło --- packages/health-check/src/checks/critical.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/health-check/src/checks/critical.js b/packages/health-check/src/checks/critical.js index b030931e..1fe046db 100644 --- a/packages/health-check/src/checks/critical.js +++ b/packages/health-check/src/checks/critical.js @@ -10,7 +10,7 @@ const MODULE_BLOCKER = "b"; const skynetClient = new SkynetClient(`https://${process.env.PORTAL_DOMAIN}`); const exampleSkylink = "AACogzrAimYPG42tDOKhS3lXZD8YvlF8Q8R17afe95iV2Q"; -const sectorSize = 1 << 22; +const sectorSize = 1 << 22; // 40 MiB // check that any relevant configuration is properly set in skyd async function skydConfigCheck(done) { @@ -115,12 +115,12 @@ async function skylinkHealthCheck(skylink, numRetries = 30, authCookie, isLarge // Throw error if the basesectorredundancy never reached 10x if (healthData.basesectorredundancy !== 10 && numRetries === 0) { - throw new Error(`Basesector did not reach full redundancy: ${healthData.basesectorredundancy}`); + throw new Error(`File uploaded but basesector did not reach full redundancy: ${healthData.basesectorredundancy}`); } // Throw error if the fanoutredundancy never reached 3x if (isLarge && healthData.fanoutredundancy !== 3 && numRetries === 0) { - throw new Error(`Fanout did not reach full redundancy: ${healthData.fanoutredundancy}`); + throw new Error(`File uploaded but fanout did not reach full redundancy: ${healthData.fanoutredundancy}`); } return response;