Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 78ce9fd

Browse files
committed
fix(core): convert cid to CID type
see the issue for details Refs #3502
1 parent 899d529 commit 78ce9fd

File tree

1 file changed

+1
-1
lines changed
  • packages/ipfs-core/src/components

1 file changed

+1
-1
lines changed

packages/ipfs-core/src/components/dht.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module.exports = ({ network, repo }) => {
6464
options.maxNumProviders = options.numProviders
6565
}
6666

67-
for await (const peer of libp2p._dht.findProviders(normalizeCID(cid), options)) {
67+
for await (const peer of libp2p._dht.findProviders(new CID(cid), options)) {
6868
yield {
6969
id: peer.id.toB58String(),
7070
addrs: peer.addrs

0 commit comments

Comments
 (0)