mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-31 15:21:34 -04:00
Add concurrency limits to async requests of
This commit is contained in:
parent
5e79449334
commit
802c6bff22
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ async.auto({
|
|||
}],
|
||||
appRouteRequestConditions: ['version', function (results, cb) {
|
||||
var conditions = {};
|
||||
async.eachLimit(routes, ASYNC_CONCURRENCY, function (route, id, cb2) {
|
||||
async.eachOfLimit(routes, ASYNC_CONCURRENCY, function (route, id, cb2) {
|
||||
var condition = {
|
||||
name: fastlyConfig.getConditionNameForRoute(route, 'request'),
|
||||
statement: 'req.url ~ "' + route.pattern + '"',
|
||||
|
@ -114,7 +114,7 @@ async.auto({
|
|||
}],
|
||||
appRouteHeaders: ['version', 'appRouteRequestConditions', function (results, cb) {
|
||||
var headers = {};
|
||||
async.eachLimit(routes, ASYNC_CONCURRENCY, function (route, id, cb2) {
|
||||
async.eachOfLimit(routes, ASYNC_CONCURRENCY, function (route, id, cb2) {
|
||||
if (route.redirect) {
|
||||
async.auto({
|
||||
responseCondition: function (cb3) {
|
||||
|
|
Loading…
Add table
Reference in a new issue