From cc436cb44c60ef2485321e1e22b3ea0a59ee22af Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Sun, 19 Apr 2026 18:16:14 +0200 Subject: TokenPool now works --- battleNetApi/include/tokenPool.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'battleNetApi/include/tokenPool.hpp') diff --git a/battleNetApi/include/tokenPool.hpp b/battleNetApi/include/tokenPool.hpp index 6f5dffc..0b1e4cc 100644 --- a/battleNetApi/include/tokenPool.hpp +++ b/battleNetApi/include/tokenPool.hpp @@ -3,7 +3,7 @@ #include #include -static std::queue mTokenContainer; +static std::queue aTokenContainer; class TokenPool { private: @@ -14,6 +14,7 @@ class TokenPool { TokenPool &operator=(TokenPool &&) = delete; public: - static void fillTokenSource(const std::string &iJsonPath); - static std::optional unusedToken(); + static void feedTokenSource(const std::span &iJsonPaths); + static void feedTokenSource(const std::string &iJsonPath); + static std::optional availableToken(); }; -- cgit v1.2.3