From d510476911c5560f670887bbe9493761c06284b5 Mon Sep 17 00:00:00 2001 From: toby7002 <144540995+toby7002@users.noreply.github.com> Date: Sun, 1 Oct 2023 22:40:57 +0700 Subject: [PATCH] wait! --- src/thebigcrafter/omp/cache/PluginVersion.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/thebigcrafter/omp/cache/PluginVersion.php b/src/thebigcrafter/omp/cache/PluginVersion.php index fa8e86f..402f137 100644 --- a/src/thebigcrafter/omp/cache/PluginVersion.php +++ b/src/thebigcrafter/omp/cache/PluginVersion.php @@ -31,11 +31,8 @@ public function getDepends(): array return $this->deps; } - /** - * @return Future - */ - public function getSize(): Future { - return Internet::getRemoteFileSize($this->getArtifactUrl()); + public function getSize() { + return Internet::getRemoteFileSize($this->getArtifactUrl())->await(); } public function getDescriptionUrl(): string {