From 1facc17f4707c6acfde1c5f3cd920505153b9835 Mon Sep 17 00:00:00 2001 From: mmcallister-cll <139181225+mmcallister-cll@users.noreply.github.com> Date: Sat, 7 Dec 2024 11:55:31 -0500 Subject: [PATCH] Chore/DF-20878 nav consulting default rate limit (#3610) * add default rate limit for nav-consulting to address 429s * add changeset --- .changeset/grumpy-tools-explain.md | 5 +++++ packages/sources/nav-consulting/src/index.ts | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 .changeset/grumpy-tools-explain.md diff --git a/.changeset/grumpy-tools-explain.md b/.changeset/grumpy-tools-explain.md new file mode 100644 index 0000000000..386ae5980f --- /dev/null +++ b/.changeset/grumpy-tools-explain.md @@ -0,0 +1,5 @@ +--- +'@chainlink/nav-consulting-adapter': minor +--- + +Add default rate limit diff --git a/packages/sources/nav-consulting/src/index.ts b/packages/sources/nav-consulting/src/index.ts index c497ca65c4..b650e4b0e5 100644 --- a/packages/sources/nav-consulting/src/index.ts +++ b/packages/sources/nav-consulting/src/index.ts @@ -8,6 +8,14 @@ export const adapter = new Adapter({ name: 'NAV_CONSULTING', config, endpoints: [reserve], + rateLimiting: { + tiers: { + default: { + rateLimit1m: 20, + note: 'Nothing in docs, setting reasonable rate limit based on 2req/bg execute', + }, + }, + }, }) export const server = (): Promise => expose(adapter)