Skip to content

Commit 28be16b

Browse files
committed
fix rate limiter crash XRPLF#286
1 parent 04ce1b2 commit 28be16b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/rate_limiter.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ GenericRateLimiter::~GenericRateLimiter() {
6060
}
6161

6262
void GenericRateLimiter::Request(int64_t bytes, const Env::IOPriority pri) {
63-
assert(bytes < refill_bytes_per_period_);
63+
assert(bytes <= refill_bytes_per_period_);
6464

6565
MutexLock g(&request_mutex_);
6666
if (stop_) {

0 commit comments

Comments
 (0)