aboutsummaryrefslogtreecommitdiff
path: root/zenserver/compute/apply.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2022-02-01 13:54:59 +0100
committerPer Larsson <[email protected]>2022-02-01 13:54:59 +0100
commitf8e0ac440e5ee2b08b91e77be1d2212f26af61df (patch)
tree4700f0abed9f7e47e65ee0b11f4a3041cb05a97d /zenserver/compute/apply.cpp
parentRefactored cloud cache access token provider. (diff)
downloadzen-f8e0ac440e5ee2b08b91e77be1d2212f26af61df.tar.xz
zen-f8e0ac440e5ee2b08b91e77be1d2212f26af61df.zip
Moved cloud cache token provider out from options.
Diffstat (limited to 'zenserver/compute/apply.cpp')
-rw-r--r--zenserver/compute/apply.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/zenserver/compute/apply.cpp b/zenserver/compute/apply.cpp
index 1d32fa35f..83fef9058 100644
--- a/zenserver/compute/apply.cpp
+++ b/zenserver/compute/apply.cpp
@@ -337,14 +337,15 @@ HttpFunctionService::HttpFunctionService(CasStore& Store, CidStore& InCidStore,
{
m_UpstreamApply = MakeUpstreamApply({}, m_CasStore, m_CidStore);
- CloudCacheAccessToken AccessToken{.Value = "ServiceAccount 0f8056b30bd0df0959be55fc3338159b6f938456d3474aed0087fb965268d079"};
+ CloudCacheAccessToken AccessToken{.Value = "ServiceAccount 0f8056b30bd0df0959be55fc3338159b6f938456d3474aed0087fb965268d079",
+ .ExpireTime = CloudCacheAccessToken::TimePoint::max()};
CloudCacheClientOptions Options = {.ServiceUrl = "https://horde.devtools-dev.epicgames.com"sv,
.DdcNamespace = "default"sv,
- .BlobStoreNamespace = "default"sv,
- .TokenProvider = CloudCacheTokenProvider::MakeFromStaticToken(AccessToken)};
+ .BlobStoreNamespace = "default"sv};
- auto HordeUpstreamEndpoint = MakeHordeUpstreamEndpoint(std::move(Options), m_CasStore, m_CidStore);
+ auto HordeUpstreamEndpoint =
+ MakeHordeUpstreamEndpoint(Options, CloudCacheTokenProvider::MakeFromStaticToken(AccessToken), m_CasStore, m_CidStore);
m_UpstreamApply->RegisterEndpoint(std::move(HordeUpstreamEndpoint));
m_UpstreamApply->Initialize();