From ae123d64700be292e12bd399c51f4618942ae364 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Sun, 20 Oct 2024 22:41:14 +0100 Subject: [PATCH] chore: remove custom hasher sanity check log --- .../functions/src/aggregator/handle-buffer-queue-message.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/functions/src/aggregator/handle-buffer-queue-message.js b/packages/functions/src/aggregator/handle-buffer-queue-message.js index cec66b9..573cf41 100644 --- a/packages/functions/src/aggregator/handle-buffer-queue-message.js +++ b/packages/functions/src/aggregator/handle-buffer-queue-message.js @@ -112,7 +112,6 @@ function getContext () { maxAggregatePieces } = getEnv() - let customHasherUsed = false return { bufferStore: withBufferStoreCache( createBufferStoreClient( @@ -146,10 +145,6 @@ function getContext () { code: sha256.code, /** @param {Uint8Array} bytes */ digest: bytes => { - if (!customHasherUsed) { - console.log('Using custom hasher') - customHasherUsed = true - } // @ts-expect-error only available in node.js 20 const digest = crypto.hash('sha256', bytes, 'buffer') return Digest.create(sha256.code, digest)