Skip to content

Commit 3a11c90

Browse files
committed
Use SPC_DOWNLOAD_RETRIES instead of SPC_RETRY_TIME
1 parent 21dc39f commit 3a11c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPC/command/DownloadCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ private function getDefaultAlternativeSource(string $source_name): array
403403
logger()->debug("Fetching alternative source for {$source_name}");
404404
// get from dl.static-php.dev
405405
$url = "https://dl.static-php.dev/static-php-cli/deps/spc-download-mirror/{$source_name}/?format=json";
406-
$json = json_decode(Downloader::curlExec(url: $url, retry: intval(getenv('SPC_RETRY_TIME') ? getenv('SPC_RETRY_TIME') : 0)), true);
406+
$json = json_decode(Downloader::curlExec(url: $url, retry: intval(getenv('SPC_DOWNLOAD_RETRIES') ?: 0)), true);
407407
if (!is_array($json)) {
408408
throw new RuntimeException('failed http fetch');
409409
}

0 commit comments

Comments
 (0)