This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module.exports = {
16
16
default : false
17
17
} ,
18
18
'enable-pubsub-experiment' : {
19
- type : 'booleam ' ,
19
+ type : 'boolean ' ,
20
20
default : false
21
21
}
22
22
} ,
@@ -25,7 +25,7 @@ module.exports = {
25
25
console . log ( 'Initializing daemon...' )
26
26
27
27
const repoPath = utils . getRepoPath ( )
28
- httpAPI = new HttpAPI ( process . env . IPFS_PATH , argv )
28
+ httpAPI = new HttpAPI ( process . env . IPFS_PATH , null , argv )
29
29
30
30
httpAPI . start ( ( err ) => {
31
31
if ( err && err . code === 'ENOENT' && err . message . match ( / U n i n i t a l i z e d r e p o / i) ) {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ function uriToMultiaddr (uri) {
16
16
return `/ip4/${ ipPort [ 0 ] } /tcp/${ ipPort [ 1 ] } `
17
17
}
18
18
19
- function HttpApi ( repo , config ) {
19
+ function HttpApi ( repo , config , cliArgs ) {
20
20
this . node = undefined
21
21
this . server = undefined
22
22
@@ -55,8 +55,8 @@ function HttpApi (repo, config) {
55
55
start : true ,
56
56
config : config ,
57
57
EXPERIMENTAL : {
58
- pubsub : true ,
59
- sharding : config && config . enableShardingExperiment
58
+ pubsub : cliArgs && cliArgs . enablePubsubExperiment ,
59
+ sharding : cliArgs && cliArgs . enableShardingExperiment
60
60
} ,
61
61
libp2p : libp2p
62
62
} )
You can’t perform that action at this time.
0 commit comments