mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-04 15:35:18 +00:00
Merge 3d1c2799d2
into 74074dfa2f
This commit is contained in:
commit
cdd08d38bd
@ -141,7 +141,7 @@ impl RPCRateLimiterBuilder {
|
|||||||
self.set_quota(protocol, Quota::one_every(time_period))
|
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 {
|
pub fn n_every(self, protocol: Protocol, n: u64, time_period: Duration) -> Self {
|
||||||
self.set_quota(protocol, Quota::n_every(n, time_period))
|
self.set_quota(protocol, Quota::n_every(n, time_period))
|
||||||
}
|
}
|
||||||
|
@ -512,7 +512,7 @@ impl Libp2pEventHandler {
|
|||||||
|
|
||||||
info!(
|
info!(
|
||||||
?addr,
|
?addr,
|
||||||
"Create public ip address to broadcase file announcement"
|
"Create public ip address to broadcast file announcement"
|
||||||
);
|
);
|
||||||
|
|
||||||
Some(addr)
|
Some(addr)
|
||||||
|
Loading…
Reference in New Issue
Block a user