Skip to content

Conversation

@jxs
Copy link
Member

@jxs jxs commented Apr 9, 2025

Description

#5868 introduced the customization of message size and mesh parameters per topic.
When decoding a message if no max size is defined per topic we should not use the default which is not customizable, we should just no-op as we are already covered by the max protobuf size passed to GossipsubDecoder, the respective tests are also not required.
Sorry I overlook this when reviewing #5868.
Cc @elijahhampton

@jxs jxs added the internal-change Pull requests that make internal changes to crates and thus don't need to include a changelog entry. label Apr 9, 2025
@jxs jxs requested a review from elenaf9 April 9, 2025 18:24
@jxs jxs changed the title fix(gossipsub): when no max size is defined per topic use the protobuf one fix(gossipsub): use the protobuf max message size when message topic max size is not defined Apr 9, 2025
@jxs jxs changed the title fix(gossipsub): use the protobuf max message size when message topic max size is not defined fix(gossipsub): use the protobuf max message size Apr 9, 2025
@jxs jxs added send-it trivial Marks PRs which are considered trivial and don't need approval from another maintainer. labels Apr 17, 2025
@mergify mergify bot merged commit c3a12c9 into master Apr 17, 2025
70 of 72 checks passed
@mergify mergify bot deleted the fix-gossipsub-message-size-per-topic branch April 17, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal-change Pull requests that make internal changes to crates and thus don't need to include a changelog entry. send-it trivial Marks PRs which are considered trivial and don't need approval from another maintainer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants