Skip to content

Update README.md for incorrect argument order of onRateLimit#11

Open
zhu1230 wants to merge 1 commit intoadiologydev:mainfrom
zhu1230:incorrect_argument_order
Open

Update README.md for incorrect argument order of onRateLimit#11
zhu1230 wants to merge 1 commit intoadiologydev:mainfrom
zhu1230:incorrect_argument_order

Conversation

@zhu1230
Copy link

@zhu1230 zhu1230 commented Feb 27, 2024

Hi there
Thanks for this package, I have been using it for limit the request frequency.
It looks like the info in Readme is not aligning with the code regarding the argument order.

the source code:

      await opt.onRateLimit(ctx, next, opt);

the info in README:

image

Hope we can fix this?
Thank you.

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.

1 participant