File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ void _workerMain(WorkerEntryMessage message) {
76
76
message.statsSendPort.send (await jobBackend.stats (JobService .dartdoc));
77
77
});
78
78
79
- await jobMaintenance.run (taskReceivePort, concurrency : 2 );
79
+ await jobMaintenance.run (taskReceivePort);
80
80
});
81
81
}
82
82
Original file line number Diff line number Diff line change @@ -78,16 +78,14 @@ class JobMaintenance {
78
78
final JobProcessor _processor;
79
79
JobMaintenance (this ._db, this ._processor);
80
80
81
- Future run (Stream taskStream, { int concurrency : 1 } ) {
81
+ Future run (Stream taskStream) {
82
82
final futures = < Future > [
83
83
syncNotifications (taskStream),
84
84
syncDatastoreHead (),
85
85
syncDatastoreHistory (),
86
86
updateStates (),
87
+ _processor.run (),
87
88
];
88
- for (int i = 0 ; i < concurrency; i++ ) {
89
- futures.add (_processor.run ());
90
- }
91
89
return Future .wait (futures);
92
90
}
93
91
You can’t perform that action at this time.
0 commit comments