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

Commit d2579c0

Browse files
authored
fix: correct dht reference in ipns routing (#2996)
1 parent 226a138 commit d2579c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ipfs/src/core/ipns/routing/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = ({ libp2p, repo, peerInfo, options }) => {
2626
const offlineDatastore = new OfflineDatastore(repo)
2727
ipnsStores.push(offlineDatastore)
2828
} else {
29-
ipnsStores.push(libp2p.dht)
29+
ipnsStores.push(libp2p._dht)
3030
}
3131

3232
// Create ipns routing with a set of datastores

packages/ipfs/test/core/name.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ describe('name', function () {
301301
const dht = sinon.stub()
302302

303303
const config = getIpnsRoutingConfig({
304-
libp2p: { dht },
304+
libp2p: { _dht: dht },
305305
repo: sinon.stub(),
306306
peerInfo: sinon.stub(),
307307
options: {

0 commit comments

Comments
 (0)