Skip to content

Commit

Permalink
fix: remove the extensions .data that got introduced by #136
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Jun 4, 2017
1 parent 8b007f7 commit 1c80df2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ class IpfsRepo {
constructor (repoPath, options) {
assert.equal(typeof repoPath, 'string', 'missing repoPath')

const defaultOptions = require('./default-options')
this.closed = true
this.path = repoPath
this.options = Object.assign({ lock: 'memory', sharding: true }, options || defaultOptions)
this.options = Object.assign({ lock: 'memory', sharding: true },
options, require('./default-options'))

const BlockStore = this.options.blockStore
this._blockStore = new BlockStore(this.path, this.options.blockStoreOptions)
this._blockStore = new BlockStore(this.path,
Object.assign(this.options.blockStoreOptions || {}, { extension: '' }))

this.version = version(this._blockStore)
this.config = config(this._blockStore)
Expand Down

0 comments on commit 1c80df2

Please sign in to comment.