File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 48
48
"benchmark" : " ^2.1.4" ,
49
49
"chai" : " ^4.2.0" ,
50
50
"dirty-chai" : " ^2.0.1" ,
51
- "ipfs-repo" : " ipfs/js-ipfs-repo#blockstore-accept-async-iterator " ,
51
+ "ipfs-repo" : " ^0.28.0 " ,
52
52
"libp2p" : " ^0.26.1" ,
53
53
"libp2p-kad-dht" : " ^0.16.0" ,
54
54
"libp2p-mplex" : " ^0.8.0" ,
Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ class DecisionEngine {
82
82
const groupedTasks = groupBy ( task => task . target . toB58String ( ) , tasks )
83
83
84
84
const blocks = await Promise . all ( uniqCids . map ( cid => this . blockstore . get ( cid ) ) )
85
- await Object . values ( groupedTasks ) . map ( async ( tasks ) => {
85
+
86
+ await Promise . all ( Object . values ( groupedTasks ) . map ( async ( tasks ) => {
86
87
// all tasks in the group have the same target
87
88
const peer = tasks [ 0 ] . target
88
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 ) {
98
99
this . messageSent ( peer , block )
99
100
}
100
- } )
101
+ } ) )
101
102
102
103
this . _tasks = [ ]
103
104
}
You can’t perform that action at this time.
0 commit comments