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

Commit 04bbd24

Browse files
author
Alan Shaw
authored
refactor: disable DHT (#1982)
Due to performance issues the DHT is disabled for the upcoming release, you can turn it on optionally but your mileage may vary. License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent d5a1b89 commit 04bbd24

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

src/core/runtime/libp2p-nodejs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ class Node extends libp2p {
5454
},
5555
dht: {
5656
kBucketSize: 20,
57-
enabled: true,
57+
enabled: false,
5858
randomWalk: {
59-
enabled: true
59+
enabled: false
6060
}
6161
},
6262
EXPERIMENTAL: {

test/core/interface.spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,15 @@ describe('interface-ipfs-core tests', function () {
101101
skip: [
102102
{
103103
name: 'should resolve an IPNS DNS link',
104-
reason: 'TODO IPNS not implemented yet'
104+
reason: 'TODO: IPNS resolve not yet implemented https://github.com/ipfs/js-ipfs/issues/1918'
105105
},
106106
{
107107
name: 'should resolve IPNS link recursively',
108-
reason: 'TODO IPNS not implemented yet'
108+
reason: 'TODO: IPNS resolve not yet implemented https://github.com/ipfs/js-ipfs/issues/1918'
109+
},
110+
{
111+
name: 'should recursively resolve ipfs.io',
112+
reason: 'TODO: ipfs.io dnslink=/ipns/website.ipfs.io & IPNS resolve not yet implemented https://github.com/ipfs/js-ipfs/issues/1918'
109113
}
110114
]
111115
})

test/http-api/interface.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,15 @@ describe('interface-ipfs-core over ipfs-http-client tests', () => {
8181
skip: [
8282
{
8383
name: 'should resolve an IPNS DNS link',
84-
reason: 'TODO IPNS not implemented yet'
84+
reason: 'TODO: IPNS resolve not yet implemented https://github.com/ipfs/js-ipfs/issues/1918'
8585
},
8686
{
8787
name: 'should resolve IPNS link recursively',
88-
reason: 'TODO IPNS not implemented yet'
88+
reason: 'TODO: IPNS resolve not yet implemented https://github.com/ipfs/js-ipfs/issues/1918'
89+
},
90+
{
91+
name: 'should recursively resolve ipfs.io',
92+
reason: 'TODO: ipfs.io dnslink=/ipns/website.ipfs.io & IPNS resolve not yet implemented https://github.com/ipfs/js-ipfs/issues/1918'
8993
}
9094
]
9195
})

0 commit comments

Comments
 (0)