mirror of
				https://github.com/0glabs/0g-storage-node.git
				synced 2025-11-04 00:27:39 +00:00 
			
		
		
		
	fix issues (#358)
* Update rate_limiter.rs * Update libp2p_event_handler.rs
This commit is contained in:
		
							parent
							
								
									eb112c1899
								
							
						
					
					
						commit
						dfc1fc40cf
					
				@ -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))
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user