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

Optimize seeding #1398

Merged
merged 2 commits into from Nov 28, 2018
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

Don't verify files in client.seed()

  • Loading branch information
KayleePop committed May 18, 2018
commit 5883e59167474b6572cf53095f31778d70f24075
@@ -257,6 +257,9 @@ class WebTorrent extends EventEmitter {
this._debug('seed')
opts = opts ? Object.assign({}, opts) : {}

// no need to verify the hashes we create
opts.skipVerify = true

const isFilePath = typeof input === 'string'

// When seeding from fs path, initialize store from that path to avoid a copy
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.