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

fix: correct dht reference in ipns routing #2996

Merged
merged 2 commits into from
Apr 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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