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

Fix rate limiter docs #2366

Merged
merged 2 commits into from Dec 17, 2022
Merged

Conversation

yagikota
Copy link
Contributor

@yagikota yagikota commented Dec 16, 2022

Closes #1853

What I did

  • fix docs and comment in rate_limiter.go

Why

  • It is difficult to understand the behavior of middleware.NewRateLimiterMemoryStore when the argument is a float number.

Need to do

@yagikota yagikota marked this pull request as ready for review December 16, 2022 20:17
Copy link
Contributor

@aldas aldas left a comment

Choose a reason for hiding this comment

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

LGTM

@yagikota
Copy link
Contributor Author

I think it is better to add code example when rate is float number to doc.

@aldas
What do you think about it?

@aldas
Copy link
Contributor

aldas commented Dec 16, 2022

Sounds ok to me. Add it to this PR and I'll merge it.

@yagikota
Copy link
Contributor Author

Add it to this PR and I'll merge it.

What does this mean?

This document is in the different repository from this one, so I think we need to create a new PR about document fixing on this repo.

@aldas
Copy link
Contributor

aldas commented Dec 17, 2022

silly me. sorry, my bad. I was distracted yesterday and forgot what repo this was and where there docs are located. Just create PR at echox. Thanks!

@aldas aldas merged commit 895121d into labstack:master Dec 17, 2022
@yagikota
Copy link
Contributor Author

No problem.
So, I'll create PR at echox.

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.

RateLimiter rejects all events when Limit is between 0 and 1
2 participants