mafintosh / torrent-stream

The low level streaming torrent engine that peerflix uses
MIT License
1.94k stars 227 forks source link

Store is based on `abstract-chunk-store` #133

Closed feross closed 8 years ago

feross commented 8 years ago

This should be semver MAJOR, since users who pass in custom storage engines with opt.storage will need to update their storage backend to be abstract-chunk-store compliant.

ghost commented 8 years ago

That makes sense. For my use-case I pass in the pieceLength from the outside but that's probably not common.

mafintosh commented 8 years ago

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.