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 all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -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,
intervalMs: 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.