-
Notifications
You must be signed in to change notification settings - Fork 496
Closed
Description
findProviders returns { id: PeerId, multiaddrs: Multiaddr[] }
js-libp2p/src/content-routing/index.js
Lines 43 to 52 in 8e1fc78
/** | |
* Iterates over all content routers in parallel to find providers of the given key. | |
* | |
* @param {CID} key - The CID key of the content to find | |
* @param {object} [options] | |
* @param {number} [options.timeout] - How long the query should run | |
* @param {number} [options.maxNumProviders] - maximum number of providers to find | |
* @returns {AsyncIterable<{ id: PeerId, multiaddrs: Multiaddr[] }>} | |
*/ | |
async * findProviders (key, options = {}) { |
While bitswap seems to assume it returns PeerId
s instead. For more context please see
https://github.com/ipfs/js-ipfs-bitswap/pull/261/files#r587862380
Metadata
Metadata
Assignees
Labels
No labels