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

Commit

Permalink
Update hyperdrive to use sparse mode
Browse files Browse the repository at this point in the history
  • Loading branch information
clkao committed Jul 7, 2016
1 parent e75bc80 commit b4a2041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"filereader-stream": "^1.0.0",
"gh-pages-deploy": "^0.4.2",
"http-server": "^0.9.0",
"hyperdrive": "^6.2.1",
"hyperdrive": "^6.6.1",
"hyperdrive-archive-swarm": "^3.0.1",
"hyperdrive-ui": "^2.0.0",
"intro.js": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if (file) {
}

function getArchive (key, cb) {
var archive = drive.createArchive(key, {live: true})
var archive = drive.createArchive(key, {live: true, sparse: true})
var sw = swarm(archive)
sw.on('connection', function (peer) {
store.dispatch({ type: 'UPDATE_PEERS', peers: sw.connections })
Expand Down

0 comments on commit b4a2041

Please sign in to comment.