Skip to content

Conversation

@dskloetc
Copy link
Contributor

Description

Adapters with an http transport should always have a rate limit otherwise they make requests as fast as possible.
This is easy to forget as it's not included in the generated boiler plate.

Changes

Include rate limit in index.ts if the newly generated adapter has an http transport.

Tested

Generated the adapters in smartcontractkit/external-adapters-js#4464 with and without http transport and with and without comments.

@dskloetc dskloetc added the patch label Dec 17, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 17, 2025

NPM Publishing labels 🏷️

🟢 This PR has valid version labels and will cause a patch bump.

@dskloetc dskloetc marked this pull request as ready for review December 17, 2025 15:58
@dskloetc dskloetc requested a review from a team as a code owner December 17, 2025 15:58
<% } -%><%= ' ' %> rateLimiting: {
tiers: {
default: {
rateLimit1m: 6,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe have a comment here say change this value to fit DP

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have expanded the comment.

mxiao-cll
mxiao-cll previously approved these changes Dec 17, 2025
@dskloetc dskloetc merged commit d63dc40 into main Dec 18, 2025
14 checks passed
@github-actions
Copy link
Contributor

🚀 Successfully created version bump PR: #650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants