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 9bb5ea5 commit ea846e5Copy full SHA for ea846e5
src/decision-engine/index.js
@@ -82,7 +82,8 @@ class DecisionEngine {
82
const groupedTasks = groupBy(task => task.target.toB58String(), tasks)
83
84
const blocks = await Promise.all(uniqCids.map(cid => this.blockstore.get(cid)))
85
- await Object.values(groupedTasks).map(async (tasks) => {
+
86
+ await Promise.all(Object.values(groupedTasks).map(async (tasks) => {
87
// all tasks in the group have the same target
88
const peer = tasks[0].target
89
const blockList = cids.map((cid) => blocks.find(b => b.cid.equals(cid)))
@@ -97,7 +98,7 @@ class DecisionEngine {
97
98
for (const block of blockList) {
99
this.messageSent(peer, block)
100
}
- })
101
+ }))
102
103
this._tasks = []
104
0 commit comments