Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Raicuparta committed Nov 9, 2024
1 parent 5a658ad commit 5a9d086
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/tauri-app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,7 @@ async fn get_provider_games(handle: AppHandle, provider_id: ProviderId) -> Resul
// So we send the game lists in batches!
const BATCH_SIZE: usize = 500;

provider
.get_games(
provider.get_games(
|game: InstalledGame| {
installed_count += 1;
installed_games_without_cache.insert(game.id.clone(), game.clone());
Expand All @@ -456,7 +455,6 @@ async fn get_provider_games(handle: AppHandle, provider_id: ProviderId) -> Resul
owned_games_without_cache.insert(game.global_id.clone(), game.clone());
owned_games.insert(game.global_id.clone(), game);
if (owned_count % BATCH_SIZE) == 0 {
log::info!("Found {owned_count} owned games for provider {provider_id}");
update_owned_games_state(&handle, &provider_id, &owned_games);
}
},
Expand Down

0 comments on commit 5a9d086

Please sign in to comment.