-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom chunker #183
Comments
there is support for a custom chunker although i think the interface may be a bit different https://github.com/ipfs/js-ipfs-unixfs/tree/master/packages/ipfs-unixfs-importer#overriding-internals |
I am somewhat skeptical that providing importer a chunker is going to be good API given that importer takes several files and each may need to be chunked differently. That is to suggest that it may be a good idea to reconsider overall importer API in the context of #186 so that chunkers could be provided along with files as opposed to having a one chunker or chunker dispatcher. |
For per-file chunkers, the FileCandidate type could be extended to allow passing a chunker/layout, etc for just that directory entry, but it's not come up before. |
go-ipfs accepts chunkers that confirm to a "Splitter" interface: https://github.com/ipfs/go-ipfs-chunker
It would be really nice to pass a chunker to this library to enable.
refs storacha/ipfs-car#99
The text was updated successfully, but these errors were encountered: