Closed feross closed 8 years ago
That makes sense. For my use-case I pass in the pieceLength from the outside but that's probably not common.
We could easily support opts.store
as well. I agree the .storage
pattern is a bit annoying but unfortunately currently needed for the reasons @feross states.
This should be semver MAJOR, since users who pass in custom storage engines with
opt.storage
will need to update their storage backend to beabstract-chunk-store
compliant.