Skip to content

Commit

Permalink
chore: remove custom hasher sanity check log
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Oct 20, 2024
1 parent f9746a2 commit ae123d6
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ function getContext () {
maxAggregatePieces
} = getEnv()

let customHasherUsed = false
return {
bufferStore: withBufferStoreCache(
createBufferStoreClient(
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ae123d6

Please sign in to comment.