Skip to content

Commit 24d0172

Browse files
authored
fix: enable retry concurrency limit for readFile() (#19077)
* fix: enable retry concurrency limit for readFile() * Fix package.json * Update @humanwhocodes/retry * Move signal to correct location
1 parent 3fa009f commit 24d0172

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/eslint/eslint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ class ESLint {
746746
});
747747
const controller = new AbortController();
748748
const retryCodes = new Set(["ENFILE", "EMFILE"]);
749-
const retrier = new Retrier(error => retryCodes.has(error.code));
749+
const retrier = new Retrier(error => retryCodes.has(error.code), { concurrency: 100 });
750750

751751
debug(`${filePaths.length} files found in: ${Date.now() - startTime}ms`);
752752

@@ -830,7 +830,7 @@ class ESLint {
830830
}
831831

832832
return result;
833-
}))
833+
}), { signal: controller.signal })
834834
.catch(error => {
835835
controller.abort(error);
836836
throw error;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"@eslint/plugin-kit": "^0.2.0",
107107
"@humanfs/node": "^0.16.6",
108108
"@humanwhocodes/module-importer": "^1.0.1",
109-
"@humanwhocodes/retry": "^0.3.1",
109+
"@humanwhocodes/retry": "^0.4.0",
110110
"@types/estree": "^1.0.6",
111111
"@types/json-schema": "^7.0.15",
112112
"ajv": "^6.12.4",

0 commit comments

Comments
 (0)