Browse Source

more fixes

v4
Mathias Buus 8 years ago
parent
commit
112edbcb42
  1. 2
      index.js

2
index.js

@ -161,10 +161,10 @@ DHT.prototype._rotateSecrets = function () {
DHT.prototype._bootstrap = function () {
// TODO: run in the background
// TODO: check stats, to determine wheather to rerun?
var self = this
if (!this.bootstrap.length) return process.nextTick(done)
var self = this
var backgroundCon = Math.min(self.concurrency, Math.max(2, Math.floor(self.concurrency / 8)))
var qs = this.query({
command: '_find_node',

Loading…
Cancel
Save