Skip to content
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

provide the torrent instance in the opts.store() options #692

Merged
merged 1 commit into from Mar 25, 2016

Conversation

@substack
Copy link
Contributor

substack commented Mar 25, 2016

Currently, opts.store() is called with the chunkLength, the opts.length containing the size of the torrent file, and the opts.files which is an array of the files in the torrent. This patch adds the torrent instance itself to the chunk store options, so that you can procedurally generate a path based on for example the infoHash for the storage of each torrent.

@feross feross merged commit 8f7a656 into webtorrent:master Mar 25, 2016
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@feross

This comment has been minimized.

Copy link
Member

feross commented Mar 25, 2016

0.87.0

@lock

This comment has been minimized.

Copy link

lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.