Permalink
Browse files

fix commented out pruning code

  • Loading branch information...
ccutrer committed Mar 19, 2013
1 parent b35d5dd commit 542e25c5ac0865c37d40e4b695a816edb41133f3
Showing with 2 additions and 2 deletions.
  1. +2 −2 mordor/rate_limiter.h
View
@@ -101,8 +101,8 @@ class RateLimiter
// If there are still timestamps, set a timer to clear it
if(!bucket.m_timestamps.empty()) {
if (!bucket.m_timer) {
- //bucket.m_timer = m_timerManager.registerTimer(bucket.m_timestamps.front() + timeLimit - now,
- // boost::bind(&RateLimiter::trimKey, this, key));
+ bucket.m_timer = m_timerManager.registerTimer(bucket.m_timestamps.front() + timeLimit - now,
+ boost::bind(&RateLimiter::trimKey, this, key));
}
} else {
m_buckets.erase(key);

0 comments on commit 542e25c

Please sign in to comment.