Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
fix: pull-stream/throughs/through is not pull-through
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Dec 20, 2018
1 parent 6a86d55 commit df0abfa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const UnixFS = require('ipfs-unixfs')
const pull = require('pull-stream/pull')
const values = require('pull-stream/sources/values')
const collect = require('pull-stream/sinks/collect')
const through = require('pull-through')
const through = require('pull-stream/throughs/through')
const pullThrough = require('pull-through')
const parallel = require('async/parallel')
const waterfall = require('async/waterfall')
const paraMap = require('pull-paramap')
Expand Down Expand Up @@ -153,7 +154,7 @@ module.exports = function builder (createChunker, ipld, createReducer, _options)
}
], callback)
}),
through( // mark as single node if only one single node
pullThrough( // mark as single node if only one single node
function onData (data) {
count++
if (previous) {
Expand Down

0 comments on commit df0abfa

Please sign in to comment.