summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-08-04 16:04:33 +0200
committerlouiz’ <louiz@louiz.org>2018-08-04 16:04:33 +0200
commit89ad479ef40a6a2363ea6aa80861f91cc2eddcd4 (patch)
treeb19a9a6e887a4c59cbfb0fb65429fe84b6e8d9f0
parent89e038bc3a6d1845f2ed450c71cdb3adb29e974a (diff)
downloadbiboumi-89ad479ef40a6a2363ea6aa80861f91cc2eddcd4.tar.gz
biboumi-89ad479ef40a6a2363ea6aa80861f91cc2eddcd4.tar.bz2
biboumi-89ad479ef40a6a2363ea6aa80861f91cc2eddcd4.tar.xz
biboumi-89ad479ef40a6a2363ea6aa80861f91cc2eddcd4.zip
Remove a useless fill_duration member
-rw-r--r--src/utils/tokens_bucket.hpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/utils/tokens_bucket.hpp b/src/utils/tokens_bucket.hpp
index d44eb06..03af015 100644
--- a/src/utils/tokens_bucket.hpp
+++ b/src/utils/tokens_bucket.hpp
@@ -20,7 +20,6 @@ public:
TokensBucket(std::size_t max_size, std::chrono::milliseconds fill_duration, std::function<bool()> callback, std::string name):
limit(max_size),
tokens(limit),
- fill_duration(fill_duration),
callback(std::move(callback))
{
log_debug("creating TokensBucket with max size: ", max_size);
@@ -47,7 +46,6 @@ public:
private:
std::size_t limit;
std::size_t tokens;
- std::chrono::milliseconds fill_duration;
std::function<bool()> callback;
void add_token()