holepunchto / hyperdrive

Hyperdrive is a secure, real time distributed file system
Apache License 2.0
1.86k stars 135 forks source link

Expose chunker #165

Closed somebody1234 closed 1 year ago

somebody1234 commented 7 years ago

So the client can modify the chunks before they are written and read, or chunk the data differently

joehand commented 7 years ago

AFAIK the chunk size is up to the client already if you use the write stream. You should be able to set the chunk size in your read stream and hyperdrive will use whatever you pipe to createWriteStream.

somebody1234 commented 7 years ago

That isn't the reason why I want the chunker exposed though

mafintosh commented 7 years ago

I'm ok adding a chunker option that is a through stream that all data is piped through internally On Thu, 18 May 2017 at 02.41, E-Hern Lee notifications@github.com wrote:

That isn't the reason why I want the chunker exposed though

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mafintosh/hyperdrive/issues/165#issuecomment-302269179, or mute the thread https://github.com/notifications/unsubscribe-auth/AAW_VUssVU_-SCYXJ5OS7b5oWxIyxMMkks5r65PEgaJpZM4Negor .

somebody1234 commented 7 years ago

@mafintosh Yeah that would work