|
@@ -374,7 +374,7 @@ discard block |
|
|
block discarded – undo |
|
374
|
374
|
'Registering compactors' |
|
375
|
375
|
); |
|
376
|
376
|
|
|
377
|
|
- $logCompactors = function (Compactor $compactor) use ($logger): void { |
|
|
377
|
+ $logCompactors = function(Compactor $compactor) use ($logger): void { |
|
378
|
378
|
$compactorClassParts = explode('\\', get_class($compactor)); |
|
379
|
379
|
|
|
380
|
380
|
if ('_HumbugBox' === substr($compactorClassParts[0], 0, strlen('_HumbugBox'))) { |
|
@@ -613,7 +613,7 @@ discard block |
|
|
block discarded – undo |
|
613
|
613
|
*/ |
|
614
|
614
|
private function bumpOpenFileDescriptorLimit(Box $box, SymfonyStyle $io): callable |
|
615
|
615
|
{ |
|
616
|
|
- $filesCount = count($box) + 128; // Add a little extra for good measure |
|
|
616
|
+ $filesCount = count($box) + 128; // Add a little extra for good measure |
|
617
|
617
|
|
|
618
|
618
|
if (function_exists('posix_getrlimit') && function_exists('posix_setrlimit')) { |
|
619
|
619
|
$softLimit = posix_getrlimit()['soft openfiles']; |
|
@@ -646,7 +646,7 @@ discard block |
|
|
block discarded – undo |
|
646
|
646
|
); |
|
647
|
647
|
} |
|
648
|
648
|
|
|
649
|
|
- return function () use ($io, $softLimit, $hardLimit): void { |
|
|
649
|
+ return function() use ($io, $softLimit, $hardLimit): void { |
|
650
|
650
|
if (function_exists('posix_setrlimit') && isset($softLimit, $hardLimit)) { |
|
651
|
651
|
posix_setrlimit( |
|
652
|
652
|
POSIX_RLIMIT_NOFILE, |
Please login to merge, or discard this patch.