diff options
author | louiz’ <louiz@louiz.org> | 2018-08-04 16:04:33 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-08-04 16:04:33 +0200 |
commit | 89ad479ef40a6a2363ea6aa80861f91cc2eddcd4 (patch) | |
tree | b19a9a6e887a4c59cbfb0fb65429fe84b6e8d9f0 /src | |
parent | 89e038bc3a6d1845f2ed450c71cdb3adb29e974a (diff) | |
download | biboumi-89ad479ef40a6a2363ea6aa80861f91cc2eddcd4.tar.gz biboumi-89ad479ef40a6a2363ea6aa80861f91cc2eddcd4.tar.bz2 biboumi-89ad479ef40a6a2363ea6aa80861f91cc2eddcd4.tar.xz biboumi-89ad479ef40a6a2363ea6aa80861f91cc2eddcd4.zip |
Remove a useless fill_duration member
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/tokens_bucket.hpp | 2 |
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() |