mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
change async to series
no real gain from parallel, series might reduce the cpu load if it finds the doc early
This commit is contained in:
parent
5e570d52a0
commit
ca8a21c425
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ module.exports = ProjectRootDocManager =
|
||||||
return cb(doc?._id)
|
return cb(doc?._id)
|
||||||
else
|
else
|
||||||
return cb()
|
return cb()
|
||||||
async.parallel jobs, (root_doc_id)->
|
async.series jobs, (root_doc_id)->
|
||||||
if root_doc_id?
|
if root_doc_id?
|
||||||
ProjectEntityHandler.setRootDoc project_id, root_doc_id, callback
|
ProjectEntityHandler.setRootDoc project_id, root_doc_id, callback
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue