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

Torrent to pass discovery interval to torrent-discovery #1436

Closed
wants to merge 2 commits into from
Closed
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

Next

pass discoveryIntervalMs for torrent-discovery

  • Loading branch information
oleiba committed Jul 20, 2018
commit f643c8336f2f6daf85747d5ac51fa574fac17660
@@ -72,6 +72,7 @@ function Torrent (torrentId, client, opts) {

this.announce = opts.announce
this.urlList = opts.urlList
this.discoveryIntervalMs = opts.discoveryIntervalMs

this.path = opts.path
this.skipVerify = !!opts.skipVerify
@@ -339,7 +340,8 @@ Torrent.prototype._onListening = function () {
dht: !self.private && self.client.dht,
tracker: trackerOpts,
port: self.client.torrentPort,
userAgent: USER_AGENT
userAgent: USER_AGENT,
discoveryIntervalMs: self.discoveryIntervalMs
})

self.discovery.on('error', onError)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.