feat: add maxNumProviders to findprovs (#283)

* feat: add maxNumProviders to findprovs

* chore: upgrade libp2p-kad-dht
This commit is contained in:
Vasco Santos
2018-11-13 10:46:51 +00:00
committed by Jacob Heun
parent 714b6ec2b9
commit 970deec2a4
4 changed files with 19 additions and 2 deletions

View File

@ -20,6 +20,7 @@ module.exports = (node) => {
* @param {CID} key The CID key of the content to find
* @param {object} options
* @param {number} options.maxTimeout How long the query should run
* @param {number} options.maxNumProviders - maximum number of providers to find
* @param {function(Error, Result<Array>)} callback
* @returns {void}
*/