diff options
Diffstat (limited to 'battleNetApi/include/tokenPool.hpp')
| -rw-r--r-- | battleNetApi/include/tokenPool.hpp | 7 |
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(); }; |
