Skip to content

Config param to disable websocket rate limit#562

Merged
cwarnerdev merged 6 commits into
developfrom
feat/ratelimit-disable
Apr 2, 2025
Merged

Config param to disable websocket rate limit#562
cwarnerdev merged 6 commits into
developfrom
feat/ratelimit-disable

Conversation

@cwarnerdev
Copy link
Copy Markdown
Contributor

Adds a config parameter to disable the websocket rate limits.

@cwarnerdev cwarnerdev changed the title Cofnig param to disable websocket rate limit Config param to disable websocket rate limit Mar 26, 2025
Copy link
Copy Markdown
Collaborator

@lmoe lmoe left a comment

Choose a reason for hiding this comment

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

Looks good!

Sorry for being pedantic, but could you invert the configuration parameter into an Enable flag instead of Deactivate?

Most of our config parameters are like:

nodeconn.Enable
metrics.Enable

I think websocketRateLimitEnabled would suit better. Rather make it default to true inside the webapi/params.go.

@cwarnerdev cwarnerdev merged commit 6e1adbf into develop Apr 2, 2025
@cwarnerdev cwarnerdev deleted the feat/ratelimit-disable branch April 2, 2025 18:36
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.

2 participants