This commit is contained in:
Adam 2024-07-30 19:57:06 -04:00
parent 20482a1bca
commit 8215007e05

View file

@ -86,10 +86,10 @@ pub async fn message_handler(
handle_new_game(_new_game, state, tx)?;
}
_chat_message if let Ok(_chat_message) = from_str::<ChatMessage>(&text) => {
handle_chat_message(_chat_message, &state, tx, addr)?;
handle_chat_message(_chat_message, state, tx, addr)?;
}
_user_log_in if let Ok(_user_log_in) = from_str::<UserLogIn>(&text) => {
handle_user_log_in(_user_log_in, &state, tx, addr)?;
handle_user_log_in(_user_log_in, state, tx, addr)?;
}
_ => {
tracing::debug!("Unhandled message: {}", &text);