record-daemon: don't propagate puuid, record it and compute at end
record-daemon / Build, check and test (push) Successful in 2m10s

This commit is contained in:
2026-03-26 13:19:44 +01:00
parent 2814d85b6b
commit b94101c4d2
3 changed files with 20 additions and 74 deletions
+2 -9
View File
@@ -191,10 +191,7 @@ impl LqpClient {
if text.is_empty() {
continue;
}
// Get local_puuid from state for champion extraction
let local_puuid = state.read().await.local_puuid.clone();
if let Some(event) = parse_websocket_message(&text, local_puuid.as_deref())
{
if let Some(event) = parse_websocket_message(&text) {
// Update state based on event
Self::update_state_from_event(&state, &event).await;
@@ -227,11 +224,7 @@ impl LqpClient {
// Try to parse as UTF-8
if let Ok(text) = String::from_utf8(data) {
if !text.is_empty() {
// Get local_puuid from state for champion extraction
let local_puuid = state.read().await.local_puuid.clone();
if let Some(event) =
parse_websocket_message(&text, local_puuid.as_deref())
{
if let Some(event) = parse_websocket_message(&text) {
// Update state based on event
Self::update_state_from_event(&state, &event).await;