Skip to content

Commit

Permalink
chore: add a ToDo to deprecate fileStreamHasher
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Feb 21, 2022
1 parent 84cae7b commit 52a640d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/hash-stream-node/src/fileStreamHasher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Readable } from "stream";

import { HashCalculator } from "./HashCalculator";

// ToDo: deprecate in favor of readableStreamHasher
export const fileStreamHasher: StreamHasher<Readable> = (hashCtor: HashConstructor, fileStream: Readable) =>
new Promise((resolve, reject) => {
if (!isReadStream(fileStream)) {
Expand Down

0 comments on commit 52a640d

Please sign in to comment.