Skip to content

Question for rate limiter #698

Closed
Closed
@gigimushroom

Description

I am trying to set up rate limiter for my grpc:
limit := rate.NewLimiter(rate.Every(time.Minute), 10)
e = ratelimit.NewErroringLimiter(limit)(e)
pb.RegisterFlowServer(s, server.NewBinding(e))
...

My client test code is to send 10 RPC, wait a minute, then send another 10 RPC.

However, my 2nd batch failed 9 out of 10.

Any ideas?

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions