Skip to content

Commit

Permalink
fix rate limiter crash XRPLF#286
Browse files Browse the repository at this point in the history
  • Loading branch information
yinqiwen committed Sep 15, 2014
1 parent 04ce1b2 commit 28be16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/rate_limiter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ GenericRateLimiter::~GenericRateLimiter() {
}

void GenericRateLimiter::Request(int64_t bytes, const Env::IOPriority pri) {
assert(bytes < refill_bytes_per_period_);
assert(bytes <= refill_bytes_per_period_);

MutexLock g(&request_mutex_);
if (stop_) {
Expand Down

0 comments on commit 28be16b

Please sign in to comment.