aboutsummaryrefslogtreecommitdiff
path: root/zenserver/upstream/upstreamcache.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2022-02-01 13:19:52 +0100
committerPer Larsson <[email protected]>2022-02-01 13:19:52 +0100
commit14b1cd4930f5bf94ddf0a6979097d27892497523 (patch)
treeed596aca1a53173aa723978a8bec31296e72c735 /zenserver/upstream/upstreamcache.cpp
parentParital completed cloud cache token provider interface. (diff)
downloadzen-14b1cd4930f5bf94ddf0a6979097d27892497523.tar.xz
zen-14b1cd4930f5bf94ddf0a6979097d27892497523.zip
Refactored cloud cache access token provider.
Diffstat (limited to 'zenserver/upstream/upstreamcache.cpp')
-rw-r--r--zenserver/upstream/upstreamcache.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/zenserver/upstream/upstreamcache.cpp b/zenserver/upstream/upstreamcache.cpp
index 44a8274da..f432d322c 100644
--- a/zenserver/upstream/upstreamcache.cpp
+++ b/zenserver/upstream/upstreamcache.cpp
@@ -85,7 +85,7 @@ namespace detail {
class JupiterUpstreamEndpoint final : public UpstreamEndpoint
{
public:
- JupiterUpstreamEndpoint(const CloudCacheClientOptions& Options, AuthMgr& Mgr)
+ JupiterUpstreamEndpoint(CloudCacheClientOptions&& Options, AuthMgr& Mgr)
: m_AuthMgr(Mgr)
, m_Log(zen::logging::Get("upstream"))
, m_UseLegacyDdc(Options.UseLegacyDdc)
@@ -93,7 +93,7 @@ namespace detail {
ZEN_ASSERT(!Options.Name.empty());
m_Info.Name = Options.Name;
m_Info.Url = Options.ServiceUrl;
- m_Client = new CloudCacheClient(Options);
+ m_Client = new CloudCacheClient(std::move(Options));
}
virtual ~JupiterUpstreamEndpoint() = default;
@@ -1490,9 +1490,9 @@ MakeUpstreamCache(const UpstreamCacheOptions& Options, ZenCacheStore& CacheStore
}
std::unique_ptr<UpstreamEndpoint>
-MakeJupiterUpstreamEndpoint(const CloudCacheClientOptions& Options, AuthMgr& Mgr)
+MakeJupiterUpstreamEndpoint(CloudCacheClientOptions&& Options, AuthMgr& Mgr)
{
- return std::make_unique<detail::JupiterUpstreamEndpoint>(Options, Mgr);
+ return std::make_unique<detail::JupiterUpstreamEndpoint>(std::move(Options), Mgr);
}
std::unique_ptr<UpstreamEndpoint>