From aae9b972742da02dc2e2bc6c2849337b0098589a Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Thu, 23 Apr 2020 15:53:20 +0200 Subject: [PATCH] fix: content and peer routing multiaddrs property (#49) --- src/content-routing/README.md | 2 +- src/peer-routing/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content-routing/README.md b/src/content-routing/README.md index 4d6223702..73abd004b 100644 --- a/src/content-routing/README.md +++ b/src/content-routing/README.md @@ -43,7 +43,7 @@ Find peers in the network that can provide a specific value, given a key. It returns an `AsyncIterable` containing the identification and addresses of the peers providing the given key, as follows: -`AsyncIterable<{ id: PeerId, addrs: Multiaddr[] }>` +`AsyncIterable<{ id: PeerId, multiaddrs: Multiaddr[] }>` ### provide diff --git a/src/peer-routing/README.md b/src/peer-routing/README.md index 66302209c..12e9f2fb2 100644 --- a/src/peer-routing/README.md +++ b/src/peer-routing/README.md @@ -43,4 +43,4 @@ Query the network for all multiaddresses associated with a `PeerId`. It returns the [peerId](https://github.com/libp2p/js-peer-id) together with the known peers [multiaddrs](https://github.com/multiformats/js-multiaddr), as follows: -`Promise<{ id: PeerId, addrs: Multiaddr[] }>` +`Promise<{ id: PeerId, multiaddrs: Multiaddr[] }>`