pub async fn check_port_availability( port_option: &PortRange, nodes: &Arc<RwLock<Vec<Arc<RwLock<NodeServiceData>>>>>, ) -> Result<()>
Make sure the port is not already in use by another node.