From c1a2e53366e8eadc5a7ed26b8757b021bcda2151 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Tue, 29 Oct 2024 17:16:11 +0000 Subject: [PATCH] chore: fmt --- app/http.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/http.php b/app/http.php index 7c6071c..b18fca4 100644 --- a/app/http.php +++ b/app/http.php @@ -1273,7 +1273,7 @@ function (string $runtimeId, ?string $payload, string $path, string $method, mix // Execute function $executionRequest = $version === 'v4' ? $executeV4 : $executeV2; - while (\microtime(true) - $startTime < $timeout) { + do { $executionResponse = \call_user_func($executionRequest); if ($executionResponse['errNo'] === CURLE_OK) { break; @@ -1285,7 +1285,7 @@ function (string $runtimeId, ?string $payload, string $path, string $method, mix } break; - } + } while (\microtime(true) - $startTime < $timeout); if ($executionResponse['errNo'] !== CURLE_OK) { $log->addExtra('activeRuntime', $activeRuntimes->get($runtimeName));