Skip to content

Commit

Permalink
Sto using async keyword as a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Aug 28, 2019
1 parent 080b566 commit e3a5d0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const AssetGraph = require('assetgraph');
const async = require('async');
const asyncLib = require('async');
const request = require('request');
const version = require('../package.json').version;
const relationDebugDescription = require('./relationDebugDescription');
Expand Down Expand Up @@ -741,7 +741,7 @@ async function hyperlink(
});

await new Promise((resolve, reject) =>
async.parallelLimit(
asyncLib.parallelLimit(
assetsToCheck.map(asset => httpStatus(asset)),
20,
err => {
Expand Down Expand Up @@ -795,7 +795,7 @@ async function hyperlink(
});

await new Promise((resolve, reject) =>
async.parallelLimit(
asyncLib.parallelLimit(
preconnectAssetsToCheck.map(asset =>
tryConnect(asset, {
operator: 'preconnect-check',
Expand Down Expand Up @@ -828,7 +828,7 @@ async function hyperlink(
});

await new Promise((resolve, reject) =>
async.parallelLimit(
asyncLib.parallelLimit(
dnsPrefetchAssetsToCheck.map(asset =>
tryConnect(asset, {
operator: 'dns-prefetch-check',
Expand Down

0 comments on commit e3a5d0f

Please sign in to comment.