From fb8a0d32ae47d2f1e06c28c24f2395490f51f218 Mon Sep 17 00:00:00 2001 From: James Rhodes Date: Tue, 19 Nov 2013 13:36:27 -0800 Subject: [PATCH] Set limit for execution in C# linter Summary: This sets the limit for future execution in the C# linter to 8. See D7606 for more information. Test Plan: Ran ``` arc lint --everything --trace --never-apply-patches --output json ``` and saw it only run 8 commands at once. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7607 --- src/lint/linter/ArcanistCSharpLinter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lint/linter/ArcanistCSharpLinter.php b/src/lint/linter/ArcanistCSharpLinter.php index 141365c8..81d1f360 100644 --- a/src/lint/linter/ArcanistCSharpLinter.php +++ b/src/lint/linter/ArcanistCSharpLinter.php @@ -184,7 +184,7 @@ final class ArcanistCSharpLinter extends ArcanistLinter { public function didRunLinters() { if ($this->futures) { - foreach (Futures($this->futures) as $future) { + foreach (Futures($this->futures)->limit(8) as $future) { $this->resolveFuture($future); } }