From dfc1fc40cfa68e50704bfaf5501936d6cea6f9d7 Mon Sep 17 00:00:00 2001 From: emmmm <155267286+eeemmmmmm@users.noreply.github.com> Date: Wed, 30 Apr 2025 08:56:34 +0200 Subject: [PATCH] fix issues (#358) * Update rate_limiter.rs * Update libp2p_event_handler.rs --- node/network/src/rpc/rate_limiter.rs | 2 +- node/router/src/libp2p_event_handler.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/network/src/rpc/rate_limiter.rs b/node/network/src/rpc/rate_limiter.rs index bf3dc11..3c931d9 100644 --- a/node/network/src/rpc/rate_limiter.rs +++ b/node/network/src/rpc/rate_limiter.rs @@ -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)) } diff --git a/node/router/src/libp2p_event_handler.rs b/node/router/src/libp2p_event_handler.rs index c625194..1d6bcd1 100644 --- a/node/router/src/libp2p_event_handler.rs +++ b/node/router/src/libp2p_event_handler.rs @@ -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)