func user_info fixed + "temporary" removed

This commit is contained in:
Shiroyasha 2024-07-26 00:38:54 +03:00
parent f402d3d441
commit 3ff68fc4a6
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
3 changed files with 9 additions and 10 deletions

View file

@ -1,4 +1,4 @@
use std::{sync::Arc, thread};
use std::sync::Arc;
use axum::{
extract::{
@ -173,9 +173,9 @@ async fn handle_socket(mut socket: WebSocket, state: AppState) {
}
// Closing connection
if let Some(u) = owner {
// state.session.remove(&u.uuid); // FIXME: Temporary solution
state.session.remove(&u.uuid); // FIXME: Temporary solution
// state.broadcasts.remove(&u.uuid); // NOTE: Create broadcasts manager ??
// state.user_manager.remove(&u.uuid);
state.user_manager.remove(&u.uuid);
}
}