docs(fix): fix contentRouting.getMany (#803)

This commit is contained in:
Samlior
2020-11-18 17:28:43 +08:00
committed by GitHub
parent fef54b2b2c
commit 824a444f56

View File

@ -665,7 +665,7 @@ Queries the DHT for the n values stored for the given key (without sorting).
// ...
const key = '/key'
const { from, val } = await libp2p.contentRouting.get(key)
const records = await libp2p.contentRouting.getMany(key, 2)
```
### peerRouting.findPeer