Browse Source

support mapping to null

v4
Mathias Buus 8 years ago
parent
commit
d041d076f2
  1. 11
      query-stream.js

11
query-stream.js

@ -165,14 +165,21 @@ QueryStream.prototype._callback = function (err, res, peer) {
return
}
this.push(this._map({
var data = this._map({
node: {
id: res.id,
port: peer.port,
host: peer.host
},
value: res.value
}))
})
if (!data) {
this._readMaybe()
return
}
this.push(data)
}
QueryStream.prototype._sendAll = function (nodes, force, useToken) {

Loading…
Cancel
Save