Skip to content

Commit

Permalink
Chore/DF-20878 nav consulting default rate limit (#3610)
Browse files Browse the repository at this point in the history
* add default rate limit for nav-consulting to address 429s

* add changeset
  • Loading branch information
mmcallister-cll authored Dec 7, 2024
1 parent d4fe7e2 commit 1facc17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-tools-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/nav-consulting-adapter': minor
---

Add default rate limit
8 changes: 8 additions & 0 deletions packages/sources/nav-consulting/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ServerInstance | undefined> => expose(adapter)

0 comments on commit 1facc17

Please sign in to comment.