mirror of
				https://github.com/0glabs/0g-storage-node.git
				synced 2025-04-04 15:35:18 +00:00 
			
		
		
		
	Improve rate limit for UDP discovery (#261)
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				abi-consistent-check / build-and-compare (push) Has been cancelled
				
			
		
			
				
	
				code-coverage / unittest-cov (push) Has been cancelled
				
			
		
			
				
	
				rust / check (push) Has been cancelled
				
			
		
			
				
	
				rust / test (push) Has been cancelled
				
			
		
			
				
	
				rust / lints (push) Has been cancelled
				
			
		
			
				
	
				functional-test / test (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	abi-consistent-check / build-and-compare (push) Has been cancelled
				
			code-coverage / unittest-cov (push) Has been cancelled
				
			rust / check (push) Has been cancelled
				
			rust / test (push) Has been cancelled
				
			rust / lints (push) Has been cancelled
				
			functional-test / test (push) Has been cancelled
				
			This commit is contained in:
		
							parent
							
								
									baf0521c99
								
							
						
					
					
						commit
						3fd800275a
					
				| @ -157,8 +157,8 @@ impl Default for Config { | |||||||
|         let filter_rate_limiter = Some( |         let filter_rate_limiter = Some( | ||||||
|             discv5::RateLimiterBuilder::new() |             discv5::RateLimiterBuilder::new() | ||||||
|                 .total_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
 |                 .total_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
 | ||||||
|                 .ip_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
 |                 .ip_n_every(9, Duration::from_secs(1)) // Allow bursts, average 9 per second
 | ||||||
|                 .node_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
 |                 .node_n_every(8, Duration::from_secs(1)) // Allow bursts, average 8 per second
 | ||||||
|                 .build() |                 .build() | ||||||
|                 .expect("The total rate limit has been specified"), |                 .expect("The total rate limit has been specified"), | ||||||
|         ); |         ); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Bo QIU
						Bo QIU