1
0

Fix lint, socket echo

This commit is contained in:
Jai A
2024-12-12 14:36:02 -08:00
parent c970e9c015
commit 1f060b8513
3 changed files with 38 additions and 11 deletions

View File

@@ -180,8 +180,7 @@ pub async fn ws_init(
}
Ok(AggregatedMessage::Ping(msg)) => {
if let Some(mut socket) =
db.auth_sockets.get_mut(&user.id.into())
if let Some(mut socket) = db.auth_sockets.get_mut(&user.id)
{
let (_, socket) = socket.value_mut();
let _ = socket.pong(&msg).await;