Skip to content

Commit

Permalink
noretry if not scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed May 26, 2024
1 parent 7ffcaa8 commit e435190
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion svc/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ async function parseProcessor(job: ParseJob) {
const apiStart = Date.now();
// The pgroup is used to update player_caches on insert.
// Since currently gcdata and parse data have no knowledge of anonymity, we pass it from API data
const noRetry = job.origin !== 'scanner';
let {
data: apiMatch,
error: apiError,
pgroup,
} = await getOrFetchApiData(matchId);
} = await getOrFetchApiData(matchId, noRetry);
apiTime = Date.now() - apiStart;
if (apiError || !apiMatch || !pgroup) {
log('fail', apiError || 'Missing API data or pgroup');
Expand Down

0 comments on commit e435190

Please sign in to comment.