refactor(service-management): update stopContainersInParallel method to enforce Server type hint for improved type safety
This commit is contained in:
parent
f1e324e129
commit
2c8d30c646
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
use App\Actions\Server\CleanupDocker;
|
||||
use App\Events\ServiceStatusChanged;
|
||||
use App\Models\Server;
|
||||
use App\Models\Service;
|
||||
use Lorisleiva\Actions\Concerns\AsAction;
|
||||
|
||||
|
|
@ -48,7 +49,7 @@ public function handle(Service $service, bool $isDeleteOperation = false, bool $
|
|||
}
|
||||
}
|
||||
|
||||
private function stopContainersInParallel(array $containersToStop, $server): void
|
||||
private function stopContainersInParallel(array $containersToStop, Server $server): void
|
||||
{
|
||||
$timeout = count($containersToStop) > 5 ? 10 : 30;
|
||||
$commands = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue