diff options
| author | Stefan Boberg <[email protected]> | 2026-03-18 23:06:23 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-03-18 23:06:23 +0100 |
| commit | 7ac43a98e09fbf309f972b6ede5d2627162fb0e1 (patch) | |
| tree | ced2089dc7599679aa3cb32565e867e007425ab9 /src/zenhorde | |
| parent | Merge remote-tracking branch 'origin/main' into sb/compute-auth (diff) | |
| download | zen-sb/compute-auth.tar.xz zen-sb/compute-auth.zip | |
Fix HordeClient to use HttpClientAccessToken constructorsb/compute-auth
- Use the new two-argument constructor instead of direct field access,
which broke after #863 made Value and ExpireTime private
Diffstat (limited to 'src/zenhorde')
| -rw-r--r-- | src/zenhorde/hordeclient.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/zenhorde/hordeclient.cpp b/src/zenhorde/hordeclient.cpp index fb981f0ba..0eefc57c6 100644 --- a/src/zenhorde/hordeclient.cpp +++ b/src/zenhorde/hordeclient.cpp @@ -35,10 +35,7 @@ HordeClient::Initialize() if (!m_Config.AuthToken.empty()) { Settings.AccessTokenProvider = [token = m_Config.AuthToken]() -> HttpClientAccessToken { - HttpClientAccessToken Token; - Token.Value = token; - Token.ExpireTime = HttpClientAccessToken::Clock::now() + std::chrono::hours{24}; - return Token; + return HttpClientAccessToken(token, HttpClientAccessToken::Clock::now() + std::chrono::hours{24}); }; } |