-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(iroh-gossip): configure the max message size (#2340)
## Description Add configuration option for `max_message_size` for `iroh-gossip::proto::Config`. This `Config` gets used in `iroh-gossip::Gossip::from_endpoint`. `iroh-docs` still uses the default 4096 bytes. The `max_message_size` configuration is useful for folks using `iroh-gossip::Gossip` as its own library. closes #2312 ## Breaking Changes Adds: `iroh-gossip::Gossip::max_message_size` - that reports the configured maximum message size for the gossip actor. Changes: `iroh_gossip::net::util::read_message` now takes a `max_message_size: usize` parameter `iroh_gossip::net::util::write_message` now takes a `max_message_size: usize` parameter `iroh_gossip::net::util::read_lp` now takes a `max_message_size: usize` parameter Removes: `iroh-gossip::proto:: MAX_MESSAGE_SIZE` const ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] All breaking changes documented.
- Loading branch information
Showing
6 changed files
with
62 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters