Browse Source

only store routing into in closests, only store OK nodes

session-estimator
Mathias Buus 4 years ago
parent
commit
b6ff0c4ca8
  1. 6
      lib/query.js

6
lib/query.js

@ -157,14 +157,12 @@ module.exports = class Query extends Readable {
this.inflight--
if (m.id !== null && this._isCloser(m.id)) {
if (m.status === 0 && m.id !== null && this._isCloser(m.id)) {
this._pushClosest({
id: m.id,
host: m.from.host,
port: m.from.port,
token: m.token,
status: m.status,
value: m.value
token: m.token
})
}

Loading…
Cancel
Save