From 824a444f562abf898e960e9784258dc9383792d2 Mon Sep 17 00:00:00 2001 From: Samlior Date: Wed, 18 Nov 2020 17:28:43 +0800 Subject: [PATCH] docs(fix): fix contentRouting.getMany (#803) --- doc/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/API.md b/doc/API.md index 69e0ca4f..d277ba87 100644 --- a/doc/API.md +++ b/doc/API.md @@ -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