Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to deal with this speed limit scheme? #1

Open
gopkg-dev opened this issue May 16, 2021 · 2 comments
Open

How to deal with this speed limit scheme? #1

gopkg-dev opened this issue May 16, 2021 · 2 comments

Comments

@gopkg-dev
Copy link

Usage Plans:

Plan type Rate (requests per second) Burst
Default 0.0055 20

这种限制请求的怎么用你这个库去处理啊?我是客户端去请求别人的 api

@day-dreams
Copy link
Owner

limiter, err := ratelimiter.New(client, 0.0055, 20, 3600)

@gopkg-dev
Copy link
Author

你这个rate只支持int啊

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

No branches or pull requests

2 participants