Skip to content

Commit

Permalink
reduce delay
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Feb 25, 2025
1 parent db7ca49 commit be3c7eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions svc/reconcile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ async function doReconcile() {
// We still might have data, so process it with some probability
// If not processed, retry with short interval
if (Math.random() < 0.9) {
await new Promise(resolve => setTimeout(resolve, 50));
await new Promise(resolve => setTimeout(resolve, 10));
continue;
}
}
await reconcileMatch(rows);
await new Promise(resolve => setTimeout(resolve, 250));
await new Promise(resolve => setTimeout(resolve, 100));
}
}
doReconcile();

0 comments on commit be3c7eb

Please sign in to comment.