summaryrefslogtreecommitdiff
path: root/src/conn.rs
diff options
context:
space:
mode:
authorstale <redkugelblitzin@gmail.com>2022-05-29 21:38:34 -0300
committerstale <redkugelblitzin@gmail.com>2022-05-29 21:38:34 -0300
commitc896f3a5f9b2e3f7f03ad1871b6566f098c0e295 (patch)
treee9e22fde8c3493de558fee5bdc8acf0aa76b09b5 /src/conn.rs
parentbcd5764aa03e128e06c355272b7b81eac8d4501d (diff)
limit flood depth, quiet logs, fix board tx
Diffstat (limited to 'src/conn.rs')
-rw-r--r--src/conn.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conn.rs b/src/conn.rs
index d38b6ef..af7903f 100644
--- a/src/conn.rs
+++ b/src/conn.rs
@@ -137,7 +137,7 @@ pub async fn handle_room(mut incoming: SplitStream<WebSocket>, addr: SocketAddr,
"reveal" => {
match parse_pos(fields) {
Some(pos) => {
- println!("{cmd} from {me}");
+ //println!("{cmd} from {me}");
if let Err(e) = cmd_tx.send(MetaMove::Move(Move { t: MoveType::Reveal, pos }, addr)) {
println!("couldn't process {me}'s reveal command: {e}");
};
@@ -150,7 +150,7 @@ pub async fn handle_room(mut incoming: SplitStream<WebSocket>, addr: SocketAddr,
"flag" => {
match parse_pos(fields) {
Some(pos) => {
- println!("{cmd} from {me}");
+ //println!("{cmd} from {me}");
if let Err(e) = cmd_tx.send(MetaMove::Move(Move { t: MoveType::ToggleFlag, pos }, addr)) {
println!("couldn't process {me}'s flag command: {e}");
};
@@ -161,7 +161,7 @@ pub async fn handle_room(mut incoming: SplitStream<WebSocket>, addr: SocketAddr,
}
},
"reset" => {
- println!("{cmd} from {me}");
+ //println!("{cmd} from {me}");
if let Err(e) = cmd_tx.send(MetaMove::Reset) {
println!("couldn't request game dump in behalf of {me}: {e}");
}