record-daemon: don't propagate puuid, record it and compute at end
record-daemon / Build, check and test (push) Successful in 2m10s
record-daemon / Build, check and test (push) Successful in 2m10s
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user