From 31f4e3e1f5ce35804002e71954744212e6c183e4 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 21 Nov 2024 11:26:45 +0000 Subject: [PATCH] backfill dynamic rate --- svc/scanner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svc/scanner.ts b/svc/scanner.ts index e28ecf0dc..2202809ab 100755 --- a/svc/scanner.ts +++ b/svc/scanner.ts @@ -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);