aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/app.js12
-rw-r--r--package.json3
2 files changed, 2 insertions, 13 deletions
diff --git a/lib/app.js b/lib/app.js
index 08a6c6c..03760ff 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -4,7 +4,6 @@ var lru = require('hashlru')
var pkg = require('../package')
var u = require('./util')
var pull = require('pull-stream')
-var hasher = require('pull-hash/ext/ssb')
var multicb = require('multicb')
var paramap = require('pull-paramap')
var Contacts = require('ssb-contact')
@@ -184,16 +183,7 @@ App.prototype.wantSizeBlob = function (id, cb) {
}
App.prototype.addBlob = function (cb) {
- var done = multicb({pluck: 1, spread: true})
- var hashCb = done()
- var addCb = done()
- done(function (err, hash, add) {
- cb(err, hash)
- })
- return pull(
- hasher(hashCb),
- this.sbot.blobs.add(addCb)
- )
+ return this.sbot.blobs.add(cb)
}
App.prototype.pushBlob = function (id, cb) {
diff --git a/package.json b/package.json
index 790fa74..b4260f4 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,6 @@
"multicb": "^1.2.1",
"pull-cat": "^1.1.11",
"pull-git-packidx-parser": "^1.0.0",
- "pull-hash": "^1.0.0",
"pull-hyperscript": "^0.2.2",
"pull-identify-filetype": "^1.1.0",
"pull-kvdiff": "^0.0.1",
@@ -27,7 +26,7 @@
"ssb-contact": "^1.0.0",
"ssb-marked": "^0.7.1",
"ssb-mentions": "^0.4.0",
- "ssb-party": "^0.4.0",
+ "ssb-party": "^0.5.0",
"ssb-sort": "^1.0.0",
"stream-to-pull-stream": "^1.7.2"
},