Comparing version 6.9.1 to 6.10.0
@@ -36,2 +36,3 @@ const { Readable } = require('streamx') | ||
this._autoDestroySession = !opts.session | ||
this._onlyClosestNodes = false | ||
@@ -56,2 +57,4 @@ this._onvisitbound = this._onvisit.bind(this) | ||
} | ||
if (opts.onlyClosestNodes) this._onlyClosestNodes = true | ||
} | ||
@@ -118,2 +121,4 @@ | ||
_addPending (node, ref) { | ||
if (this._onlyClosestNodes) return false | ||
const addr = node.host + ':' + node.port | ||
@@ -120,0 +125,0 @@ const refs = this._seen.get(addr) |
{ | ||
"name": "dht-rpc", | ||
"version": "6.9.1", | ||
"version": "6.10.0", | ||
"description": "Make RPC calls over a Kademlia based DHT", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61830
1411