diff options
Diffstat (limited to 'src/zenserver/upstream')
| -rw-r--r-- | src/zenserver/upstream/jupiter.cpp | 11 | ||||
| -rw-r--r-- | src/zenserver/upstream/jupiter.h | 6 |
2 files changed, 4 insertions, 13 deletions
diff --git a/src/zenserver/upstream/jupiter.cpp b/src/zenserver/upstream/jupiter.cpp index fe4d31604..c77834657 100644 --- a/src/zenserver/upstream/jupiter.cpp +++ b/src/zenserver/upstream/jupiter.cpp @@ -71,18 +71,13 @@ CloudCacheSession::Authenticate() } CloudCacheResult -CloudCacheSession::GetRef(std::string_view Namespace, - std::string_view BucketId, - const IoHash& Key, - ZenContentType RefType, - std::filesystem::path TempFolderPath) +CloudCacheSession::GetRef(std::string_view Namespace, std::string_view BucketId, const IoHash& Key, ZenContentType RefType) { ZEN_TRACE_CPU("JupiterClient::GetRef"); HttpClient::Response Response = - m_CacheClient->m_HttpClient.Download(fmt::format("/api/v1/refs/{}/{}/{}", Namespace, BucketId, Key.ToHexString()), - TempFolderPath, - {HttpClient::Accept(RefType)}); + m_CacheClient->m_HttpClient.Get(fmt::format("/api/v1/refs/{}/{}/{}", Namespace, BucketId, Key.ToHexString()), + {HttpClient::Accept(RefType)}); return detail::ConvertResponse(Response, "CloudCacheSession::GetRef"sv); } diff --git a/src/zenserver/upstream/jupiter.h b/src/zenserver/upstream/jupiter.h index 93f2cc883..cfe8f6186 100644 --- a/src/zenserver/upstream/jupiter.h +++ b/src/zenserver/upstream/jupiter.h @@ -94,11 +94,7 @@ public: ~CloudCacheSession(); CloudCacheResult Authenticate(); - CloudCacheResult GetRef(std::string_view Namespace, - std::string_view BucketId, - const IoHash& Key, - ZenContentType RefType, - std::filesystem::path TempFolderPath = {}); + CloudCacheResult GetRef(std::string_view Namespace, std::string_view BucketId, const IoHash& Key, ZenContentType RefType); CloudCacheResult GetBlob(std::string_view Namespace, const IoHash& Key); CloudCacheResult GetCompressedBlob(std::string_view Namespace, const IoHash& Key, std::filesystem::path TempFolderPath = {}); CloudCacheResult GetObject(std::string_view Namespace, const IoHash& Key); |