diff options
Diffstat (limited to 'lib/app.js')
-rw-r--r-- | lib/app.js | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -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) { |