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

feat: ratelimit store queries and add options to Next #1221

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

richard-ramos
Copy link
Member

Part of the refactoring for the storenode cycle. This will rate limit the store queries to a max of 8 queries per second per peerID. (This is the value used in staging). It's possible to skip this rate limit via options.

In addition to that while debugging an issue with the storenode message counter, i found that not being able to pass options to Next to be somewhat limiting, specially if you want to change the requestID to some deterministic value, hence i modified it to pass options.

Copy link
Collaborator

@chaitanyaprem chaitanyaprem left a comment

Choose a reason for hiding this comment

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

LGTM, apart from few minor comments.

waku/v2/protocol/store/options.go Show resolved Hide resolved
waku/v2/protocol/store/client.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants