Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Limit the number of hh_client processes
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry committed Nov 23, 2021
1 parent 5cf1f15 commit 9c7ec31
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/Linters/HHClientLinter.hack
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,16 @@ final class HHClientLinter implements Linter {

public async function getLintErrorsAsync(
): Awaitable<vec<HHClientLintError>> {
$lines = await __Private\execute_async(
'hh_client',
'--lint',
$this->getFile()->getPath(),
'--json',
'--from',
'hhast',
);
$lines =
await __Private\ProcessExecutionQueue::getHHClientQueue()->waitForAsync(
vec[
'--lint',
$this->getFile()->getPath(),
'--json',
'--from',
'hhast',
],
);
$hh_client_lint_result = TypeAssert\matches<this::TJSONResult>(
\json_decode(
C\firstx($lines),
Expand Down

0 comments on commit 9c7ec31

Please sign in to comment.