fix static member not defined in cpp

This commit is contained in:
sachaaaaa 2019-05-29 13:46:04 +10:00
parent 1cdced77fc
commit 65302e8614

View file

@ -2,6 +2,10 @@
#include <algorithm> #include <algorithm>
constexpr uint32_t RateLimiter::BUCKET_SIZE;
constexpr uint32_t RateLimiter::TOKEN_RATE;
using namespace std::chrono_literals; using namespace std::chrono_literals;
constexpr static std::chrono::microseconds TOKEN_PERIOD_US = constexpr static std::chrono::microseconds TOKEN_PERIOD_US =