Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #914 from 3box/fix/ipfs-datastore-key-not-found
Browse files Browse the repository at this point in the history
Fix/ipfs datastore key not found
  • Loading branch information
zachferland authored Sep 14, 2020
2 parents dcbde39 + 3c17a11 commit d010570
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/3box.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,13 @@ async function initIPFSRepo (iframeCache) {
ipfsRootPath = 'ipfs/root/' + sessionID
const levelInstance = new LevelStore(ipfsRootPath)

const ipfsDatastorePath = 'ipfs/datastore' // path name level-js-ipfs/datastore
const levelDatastore = new LevelStore(ipfsDatastorePath)

repoOpts = {
storageBackends: {
root: () => levelInstance
root: () => levelInstance,
datastore: () => levelDatastore
}
}

Expand Down

0 comments on commit d010570

Please sign in to comment.