mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-02 02:41:15 +00:00
fix: content and peer routing multiaddrs property (#49)
This commit is contained in:
parent
aa996d2054
commit
9fbf9d0331
@ -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:
|
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
|
### provide
|
||||||
|
|
||||||
|
@ -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:
|
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[] }>`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user