Update rate_limiter.rs

This commit is contained in:
emmmm 2025-03-24 21:01:04 +01:00 committed by GitHub
parent 74074dfa2f
commit 3d41e29c4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -141,7 +141,7 @@ impl RPCRateLimiterBuilder {
self.set_quota(protocol, Quota::one_every(time_period))
}
/// Allow `n` tokens to be use used every `time_period` for this `protocol`.
/// Allow `n` tokens to be used every `time_period` for this `protocol`.
pub fn n_every(self, protocol: Protocol, n: u64, time_period: Duration) -> Self {
self.set_quota(protocol, Quota::n_every(n, time_period))
}