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

Commit

Permalink
fix: correct dht reference in ipns routing (#2996)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis committed Apr 24, 2020
1 parent 226a138 commit d2579c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ipfs/src/core/ipns/routing/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = ({ libp2p, repo, peerInfo, options }) => {
const offlineDatastore = new OfflineDatastore(repo)
ipnsStores.push(offlineDatastore)
} else {
ipnsStores.push(libp2p.dht)
ipnsStores.push(libp2p._dht)
}

// Create ipns routing with a set of datastores
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs/test/core/name.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ describe('name', function () {
const dht = sinon.stub()

const config = getIpnsRoutingConfig({
libp2p: { dht },
libp2p: { _dht: dht },
repo: sinon.stub(),
peerInfo: sinon.stub(),
options: {
Expand Down

0 comments on commit d2579c0

Please sign in to comment.