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

@ -261,12 +261,12 @@ Required keys in the `options` object:
- `key`: Buffer
- `options`: object of options
- `options.maxTimeout`: Number milliseconds
- `options.maxNumProviders` maximum number of providers to find
#### `libp2p.contentRouting.provide(key, callback)`
- `key`: Buffer
#### `libp2p.handle(protocol, handlerFunc [, matchFunc])`
> Handle new protocol