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

Commit

Permalink
fix: breaking the stack when importing
Browse files Browse the repository at this point in the history
  • Loading branch information
pgte committed Mar 23, 2017
1 parent 295d86e commit 993f746
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/importer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const pull = require('pull-stream')
const writable = require('pull-write')
const pushable = require('pull-pushable')
const assert = require('assert')
const setImmediate = require('async/setImmediate')
const DAGBuilder = require('../builder')
const createTreeBuilder = require('./tree-builder')

Expand All @@ -29,7 +30,7 @@ module.exports = function (ipldResolver, _options) {
(nodes, callback) => {
pending += nodes.length
nodes.forEach((node) => entry.source.push(node))
callback()
setImmediate(callback)
},
null,
1,
Expand Down

0 comments on commit 993f746

Please sign in to comment.