mirror of
				https://github.com/0glabs/0g-storage-node.git
				synced 2025-11-04 08:37:27 +00:00 
			
		
		
		
	Update network_behaviour.rs
This commit is contained in:
		
							parent
							
								
									898350e271
								
							
						
					
					
						commit
						9951224351
					
				@ -134,7 +134,7 @@ impl NetworkBehaviour for PeerManager {
 | 
				
			|||||||
            BanResult::NotBanned => {}
 | 
					            BanResult::NotBanned => {}
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Count dialing peers in the limit if the peer dialied us.
 | 
					        // Count dialing peers in the limit if the peer dialed us.
 | 
				
			||||||
        let count_dialing = endpoint.is_listener();
 | 
					        let count_dialing = endpoint.is_listener();
 | 
				
			||||||
        // Check the connection limits
 | 
					        // Check the connection limits
 | 
				
			||||||
        if self.peer_limit_reached(count_dialing)
 | 
					        if self.peer_limit_reached(count_dialing)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user