mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-26 05:50:14 +00:00
Update mod.rs
This commit is contained in:
1 parent
03ea9513b9
commit
88181cf44c
1 file changed
-15
@@ -486,21 +486,6 @@ impl Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn process(&mut self) -> anyhow::Result<()> {
|
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_authenticated_clients().await?;
|
||||||
self.process_lua_events().await?;
|
self.process_lua_events().await?;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user