We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1bd9cf commit c27318fCopy full SHA for c27318f
src/decision-engine/index.js
@@ -95,10 +95,10 @@ class DecisionEngine {
95
const groupedTasks = groupBy(tasks, (task) => task.target.toB58String())
96
97
waterfall([
98
- (cb) => map(uniqCids, (cid, cb) => {
+ (callback) => map(uniqCids, (cid, cb) => {
99
this.blockstore.get(cid, cb)
100
- }, cb),
101
- (blocks, cb) => each(values(groupedTasks), (tasks, cb) => {
+ }, callback),
+ (blocks, callback) => each(values(groupedTasks), (tasks, cb) => {
102
// all tasks have the same target
103
const peer = tasks[0].target
104
const blockList = cids.map((cid) => {
@@ -115,7 +115,7 @@ class DecisionEngine {
115
116
cb()
117
})
118
- })
+ }, callback)
119
], (err) => {
120
this._tasks = []
121
0 commit comments