--- a/rust/hedgewars-server/src/server/network.rs Mon Feb 12 21:26:35 2024 +0300
+++ b/rust/hedgewars-server/src/server/network.rs Tue Feb 13 00:58:17 2024 +0300
@@ -180,12 +180,13 @@
client_message = Self::read(&mut self.stream, &mut self.decoder) => {
match client_message {
Ok(message) => {
+ //todo!("add flood stats");
if !sender.send(Message(message)).await {
break;
}
}
Err(e) => {
- todo!("send cmdline errors");
+ //todo!("send cmdline errors");
sender.send(Error(format!("{}", e))).await;
if matches!(e, ProtocolError::Timeout) {
Self::write(&mut self.stream, Bytes::from(HwServerMessage::Bye("Ping timeout".to_string()).to_raw_protocol())).await;
@@ -274,8 +275,8 @@
}
}
- todo!("add the DB task");
- todo!("add certfile watcher task");
+ //todo!("add the DB task");
+ //todo!("add certfile watcher task");
loop {
#[cfg(not(feature = "tls-connections"))]
tokio::select! {