Skip to content

Commit

Permalink
fetch next game data if tid changes
Browse files Browse the repository at this point in the history
  • Loading branch information
actuday6418 committed Nov 28, 2023
1 parent 3c77155 commit 32dd00b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions overlay/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ pub async fn networking_thread(
.unwrap_or_else(|e| error!("Frontend could not recieve snapshot!: {e}"));
} else {
info!(
"Fetching game data for tid: {}, gid: {}. Cache is empty or invalid!",
"Fetching game data for tid: {}, gid: {}. Cache is empty!",
tid, gid,
);
tokio::spawn(async move {
Expand All @@ -384,11 +384,11 @@ pub async fn networking_thread(
info!("Tournament id changed without a change in gid");
*tournament_id_inner = tid;
info!(
"Fetching game data for tid: {}, gid: {} on tournament ID change!",
"Fetching game data to cache for tid: {}, gid: {} on tournament ID change!",
tid, gid,
);
tokio::spawn(async move {
fetch_game_data(tr_, &uwhscores_url, &uwhportal_url, tid, gid, true).await;
fetch_game_data(tr_, &uwhscores_url, &uwhportal_url, tid, gid, false).await;
});
}
}
Expand Down

0 comments on commit 32dd00b

Please sign in to comment.