summaryrefslogtreecommitdiff
path: root/battleNetApi/include/tokenPool.hpp
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-04-19 18:16:14 +0200
committerAotrix <[email protected]>2026-04-19 18:16:14 +0200
commitcc436cb44c60ef2485321e1e22b3ea0a59ee22af (patch)
treeb04464945278bcdc8915d8b3676b504a95e3f701 /battleNetApi/include/tokenPool.hpp
parent8837de4783b25255b6a1799be210c9e580dd2d4f (diff)
TokenPool now works
Diffstat (limited to 'battleNetApi/include/tokenPool.hpp')
-rw-r--r--battleNetApi/include/tokenPool.hpp7
1 files changed, 4 insertions, 3 deletions
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 <queue>
#include <token.hpp>
-static std::queue<Token> mTokenContainer;
+static std::queue<Token> 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<std::string> unusedToken();
+ static void feedTokenSource(const std::span<std::string> &iJsonPaths);
+ static void feedTokenSource(const std::string &iJsonPath);
+ static std::optional<Token> availableToken();
};