Skip to content

Commit

Permalink
feat: add support for experimental mfs flag
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed May 18, 2018
1 parent 5a9b96e commit 3ce834e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ipfsd-in-proc.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,21 @@ class Node extends EventEmitter {
hop: {
enabled: false
}
}
},
mfs: false
})

this.opts.args.forEach((arg) => {
if (arg === '--enable-pubsub-experiment') {
this.opts.EXPERIMENTAL.pubsub = true
} else if (arg === '--enable-sharding-experiment') {
this.opts.EXPERIMENTAL.sharding = true
} else if (arg === '--enable-mfs-experiment') {
this.opts.EXPERIMENTAL.mfs = true
} else if (arg.startsWith('--pass')) {
this.opts.pass = arg.split(' ').slice(1).join(' ')
} else {
throw new Error('Unkown argument ' + arg)
throw new Error(`Unknown argument ${arg}`)
}
})

Expand Down

0 comments on commit 3ce834e

Please sign in to comment.