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: check max message size in validator according to configured value #2424

Merged
merged 4 commits into from
Feb 14, 2024

Conversation

gabrielmer
Copy link
Contributor

Description

Maximum message size is a configurable parameter. Therefore, we're updating the validator that we run in our REST handlers to check against the configured value.

Notice that for clusterId=1, the configuration is overriden to the Waku Network's max message size during app startup.

conf.maxMessageSize = twnClusterConf.maxMessageSize

Changes

  • running size validator against the configured max message size value
  • updated tests

Issue

closes #2406

Copy link

github-actions bot commented Feb 13, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2424

Built from 7692bdc

Copy link
Contributor

@alrevuelta alrevuelta left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks! 💯

@gabrielmer gabrielmer merged commit 731dfcb into master Feb 14, 2024
9 of 10 checks passed
@gabrielmer gabrielmer deleted the max-message-size-configurable-for-clusterId-not-1 branch February 14, 2024 15:29
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.

chore: make max message size configurable only for clusterIds different than 1
3 participants