hyperdrive icon indicating copy to clipboard operation
hyperdrive copied to clipboard

Expose chunker

Open somebody1234 opened this issue 7 years ago • 4 comments

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

somebody1234 avatar May 17 '17 22:05 somebody1234

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.

joehand avatar May 17 '17 23:05 joehand

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

somebody1234 avatar May 18 '17 00:05 somebody1234

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 [email protected] 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 .

mafintosh avatar May 18 '17 06:05 mafintosh

@mafintosh Yeah that would work

somebody1234 avatar May 18 '17 07:05 somebody1234