mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-01 14:06:10 +00:00
Update rate_limiter.rs
This commit is contained in:
parent
74074dfa2f
commit
3d41e29c4d
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user