[object Object]

← back to Rentv 2026

pr/registry: give ncuaCreditUnions its own 'ncua' throttle key. It used 'fdic' (a copy-paste artifact from fdicBanks), which shared one 350ms rate-limit bucket across two INDEPENDENT gov hosts (api.fdic.gov vs mapping.ncua.gov), needlessly serializing them. Safe — no correctness depends on the shared throttle; separate keys just let the two independent APIs proceed independently

aae957c2c99b29835387e79b7ed0537ec045599e · 2026-08-06 02:22:18 -0700 · Steve

Files touched

Diff

commit aae957c2c99b29835387e79b7ed0537ec045599e
Author: Steve <steve@designerwallcoverings.com>
Date:   Thu Aug 6 02:22:18 2026 -0700

    pr/registry: give ncuaCreditUnions its own 'ncua' throttle key. It used 'fdic' (a copy-paste artifact from fdicBanks), which shared one 350ms rate-limit bucket across two INDEPENDENT gov hosts (api.fdic.gov vs mapping.ncua.gov), needlessly serializing them. Safe — no correctness depends on the shared throttle; separate keys just let the two independent APIs proceed independently
---
 src/pr/adapters/registry.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pr/adapters/registry.js b/src/pr/adapters/registry.js
index b193bdea..5b04213b 100644
--- a/src/pr/adapters/registry.js
+++ b/src/pr/adapters/registry.js
@@ -61,7 +61,7 @@ const adapter = register({
     const url = `https://mapping.ncua.gov/api/CreditUnion/Search?state=${encodeURIComponent(state)}&page=${page}`;
     const errors = []; let items = [];
     try {
-      const j = await throttled('fdic', async () => {
+      const j = await throttled('ncua', async () => { // own throttle key — NCUA (mapping.ncua.gov) is a separate host from FDIC; sharing 'fdic' needlessly serialized two independent gov APIs
         const r = await fetch(url, { headers: { Accept: 'application/json' }, signal: AbortSignal.timeout(20000) });
         if (!r.ok) throw new Error('NCUA ' + r.status);
         return r.json();

← b37f2aba auto-save: 2026-08-06T02:17:40 (7 files) — data/deals-regist  ·  back to Rentv 2026  ·  auto-save: 2026-08-06T02:47:50 (7 files) — data/deals-regist ff82d81d →