Skip to content

Conversation

TheLarkInn
Copy link
Member

}
}

hash = new BatchedHash(createXXHash64());
hash = new BatchedHash(createXXHash64() as unknown as Hash);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This cast is unfortunate. Can it be elimianted?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createXXHash64() & createMd4() is of type WasmHash and I'm having a hard time understanding the best way to 'coerce' these together to be typed properly. Advice here is welcomed.

@@ -0,0 +1,35 @@
import path from "path";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider renaming this in a separate commit to retain the history.

@TheLarkInn TheLarkInn requested a review from sokra January 3, 2023 16:24
@TheLarkInn
Copy link
Member Author

@sokra adding you on this review. I'd like some advice on how we'd align the classes between WasmHash instances and regular Hash instances so this is more typesafe.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 3, 2023

CLA Not Signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants