fix issues (#358)

* Update rate_limiter.rs

* Update libp2p_event_handler.rs
This commit is contained in:
emmmm 2025-04-30 08:56:34 +02:00 committed by GitHub
parent eb112c1899
commit dfc1fc40cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

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))
}

View File

@ -512,7 +512,7 @@ impl Libp2pEventHandler {
info!(
?addr,
"Create public ip address to broadcase file announcement"
"Create public ip address to broadcast file announcement"
);
Some(addr)