Fix pattern
This commit is contained in:
parent
299a4b3b75
commit
ae52b25baa
1 changed files with 3 additions and 2 deletions
|
|
@ -72,13 +72,14 @@ async fn main() -> Result<()> {
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Some(Err(e)) => {
|
Some(Err(e)) => {
|
||||||
error!("Error parsing message: {e}");
|
error!("Error parsing message: {e}");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
info!("No frame");
|
info!("No frame");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -90,7 +91,7 @@ async fn main() -> Result<()> {
|
||||||
// broadcast message to all clients except the one who sent it
|
// broadcast message to all clients except the one who sent it
|
||||||
info!("Receiving new chat message: {n}");
|
info!("Receiving new chat message: {n}");
|
||||||
let b =
|
let b =
|
||||||
BroadcastMessage(name.clone(), format!("[{}]: {}", name, n));
|
BroadcastMessage(name.clone(), format!("[{}] {}", name, n));
|
||||||
let _ = tx.send(b);
|
let _ = tx.send(b);
|
||||||
}
|
}
|
||||||
Some(Err(e)) => {
|
Some(Err(e)) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue