diff options
| author | Stefan Boberg <[email protected]> | 2022-01-26 12:36:21 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2022-01-26 12:36:21 +0100 |
| commit | 1b03128af0eb96f192ab643ca1fec3d62c7ed161 (patch) | |
| tree | 1cde199c2f605c8aa2c4a2a0705d6651394ab403 /zenserver/upstream/upstreamcache.cpp | |
| parent | Super temporary sentry symbol upload script to help jog my memory whenever I ... (diff) | |
| parent | Fixed issue with missing endpoint name when configuring upstream cache from Lua. (diff) | |
| download | zen-1b03128af0eb96f192ab643ca1fec3d62c7ed161.tar.xz zen-1b03128af0eb96f192ab643ca1fec3d62c7ed161.zip | |
Merge branch 'main' of https://github.com/EpicGames/zen
Diffstat (limited to 'zenserver/upstream/upstreamcache.cpp')
| -rw-r--r-- | zenserver/upstream/upstreamcache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zenserver/upstream/upstreamcache.cpp b/zenserver/upstream/upstreamcache.cpp index b0343a61b..8b02a437a 100644 --- a/zenserver/upstream/upstreamcache.cpp +++ b/zenserver/upstream/upstreamcache.cpp @@ -535,10 +535,12 @@ namespace detail { public: ZenUpstreamEndpoint(const ZenStructuredCacheClientOptions& Options) : m_Log(zen::logging::Get("upstream")) - , m_Info({.Name = std::string(Options.Name)}) , m_ConnectTimeout(Options.ConnectTimeout) , m_Timeout(Options.Timeout) { + ZEN_ASSERT(!Options.Name.empty()); + m_Info.Name = Options.Name; + for (const auto& Url : Options.Urls) { m_Endpoints.push_back({.Url = Url}); |