Skip to content

BREAKING: Allow RateLimitController to define a rate-limit per method#1355

Merged
GuillaumeRx merged 5 commits intomainfrom
gr/rate-limit-controller-method-config
May 23, 2023
Merged

BREAKING: Allow RateLimitController to define a rate-limit per method#1355
GuillaumeRx merged 5 commits intomainfrom
gr/rate-limit-controller-method-config

Conversation

@GuillaumeRx
Copy link
Contributor

Description

This changes the RateLimitController so defining a rate limit for a specific method is possible.

This changes the structure of the passed API config object.

Changes

  • BREAKING

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc)
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@GuillaumeRx GuillaumeRx requested a review from a team as a code owner May 9, 2023 17:44
@GuillaumeRx GuillaumeRx force-pushed the gr/rate-limit-controller-method-config branch from a7b08ca to 24ee3f0 Compare May 9, 2023 17:54
@GuillaumeRx GuillaumeRx requested a review from legobeat May 10, 2023 11:31
@GuillaumeRx GuillaumeRx force-pushed the gr/rate-limit-controller-method-config branch from c1b90d5 to 3101525 Compare May 10, 2023 11:36
@FrederikBolding FrederikBolding changed the title Allow RateLimitController to define a rate-limit per method BREAKING: Allow RateLimitController to define a rate-limit per method May 17, 2023
@GuillaumeRx GuillaumeRx force-pushed the gr/rate-limit-controller-method-config branch from 0688880 to 824d6e2 Compare May 23, 2023 11:30
@GuillaumeRx GuillaumeRx merged commit 51cdc97 into main May 23, 2023
@GuillaumeRx GuillaumeRx deleted the gr/rate-limit-controller-method-config branch May 23, 2023 11:56
brad-decker pushed a commit to dragana8/core that referenced this pull request Jun 1, 2023
…od (MetaMask#1355)

* allow `RateLimitController` to define a rate-limit per method

* add JSDoc to `RateLimitedApi`

* use nullish coalescing operator

* update test

* use `.toString()` instead of casting
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
…od (#1355)

* allow `RateLimitController` to define a rate-limit per method

* add JSDoc to `RateLimitedApi`

* use nullish coalescing operator

* update test

* use `.toString()` instead of casting
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
…od (#1355)

* allow `RateLimitController` to define a rate-limit per method

* add JSDoc to `RateLimitedApi`

* use nullish coalescing operator

* update test

* use `.toString()` instead of casting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow RateLimitController to have a per method rate limit

5 participants