feat & chore: clean up and push current progress on splatfest matchmaking

This commit is contained in:
DJMrTV 2025-05-14 09:52:24 +02:00
commit 7703aafe3c
32 changed files with 436 additions and 1181 deletions

View file

@ -340,8 +340,7 @@ impl PRUDPPacket {
options.push(PacketOption::from(option_id, &option_data)?);
}
trace!("reading payload");
let mut payload = vec![0u8; header.payload_size as usize];
reader.read_exact(&mut payload)?;

View file

@ -47,8 +47,6 @@ impl Router {
},
};
trace!("got valid prudp packet from someone({}): \n{:?}", addr, packet);
let connection = packet.source_sockaddr(addr);
@ -63,8 +61,7 @@ impl Router {
// Dont keep the locked structure for too long
drop(endpoints);
trace!("sending packet to endpoint");
tokio::spawn(async move {
endpoint.recieve_packet(connection, packet).await
@ -95,7 +92,7 @@ impl Router {
}
pub async fn new(addr: SocketAddrV4) -> io::Result<(Arc<Self>, JoinHandle<()>)>{
trace!("starting router on {}", addr);
// trace!("starting router on {}", addr);
let socket = Arc::new(UdpSocket::bind(addr).await?);