Skip to content

Commit

Permalink
backfill dynamic rate
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Nov 21, 2024
1 parent 97f488b commit 31f4e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svc/scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import db from '../store/db';
const API_KEYS = config.STEAM_API_KEY.split(',');
const PAGE_SIZE = 100;
// This endpoint is limited to something like 1 request every 5 seconds
const SCANNER_WAIT = 5000;
const SCANNER_WAIT = 5000 / config.STEAM_API_HOST.split(',').length;

async function scanApi(seqNum: number) {
const offset = Number(config.SCANNER_OFFSET);
Expand Down

0 comments on commit 31f4e3e

Please sign in to comment.