From 88181cf44c65f141c867993dc5952c6ed418b498 Mon Sep 17 00:00:00 2001 From: Luuk van Oijen Date: Wed, 22 Nov 2023 12:19:04 +0100 Subject: [PATCH] Update mod.rs --- src/server/mod.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/server/mod.rs b/src/server/mod.rs index 5b2cfbe..7bad35e 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -486,21 +486,6 @@ impl Server { } pub async fn process(&mut self) -> anyhow::Result<()> { - // In the future, we should find a way to race process_tcp and process_udp - // because this introduces some latency and isn't great! - // But technically it works, and keeping the latency low should really make - // it a non-issue I think. - // TODO: Handle result - // tokio::select! { - // _ = self.process_udp() => {}, - // _ = tokio::time::sleep(tokio::time::Duration::from_nanos(1_000)) => {}, - // }; - // - // tokio::select! { - // _ = tokio::time::sleep(tokio::time::Duration::from_nanos(1_000)) => {}, - // _ = self.process_tcp() => {}, - // }; - self.process_authenticated_clients().await?; self.process_lua_events().await?;