pub const DEFAULT_MAX_MESSAGE_SIZE: usize = 4096;
pub type HyParViewConfig = iroh_gossip::proto::HyparviewConfig;
pub type PlumTreeConfig = iroh_gossip::proto::PlumtreeConfig;
#[derive(Clone, Debug)]
pub struct GossipConfig {
pub membership: HyParViewConfig,
pub broadcast: PlumTreeConfig,
pub max_message_size: usize,
}
impl Default for GossipConfig {
fn default() -> Self {
Self {
membership: Default::default(),
broadcast: Default::default(),
max_message_size: DEFAULT_MAX_MESSAGE_SIZE,
}
}
}