diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/tokens_bucket.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/tokens_bucket.hpp b/src/utils/tokens_bucket.hpp index 2992e21..263359a 100644 --- a/src/utils/tokens_bucket.hpp +++ b/src/utils/tokens_bucket.hpp @@ -19,7 +19,7 @@ class TokensBucket public: TokensBucket(long int max_size, std::chrono::milliseconds fill_duration, std::function<bool()> callback, std::string name): limit(max_size), - tokens(limit), + tokens(static_cast<std::size_t>(limit)), callback(std::move(callback)) { log_debug("creating TokensBucket with max size: ", max_size); |