Skip to content

Commit

Permalink
Bump the message size
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Dec 13, 2024
1 parent 059e876 commit f9477b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ automerge = "0.5.12"
ciborium = "0.2.2"
gettext-rs = { version = "0.7", features = ["gettext-system"] }
gtk = { version = "0.9", package = "gtk4", features = ["gnome_47"] }
iroh-gossip = "0.29.0"
p2panda-core = "0.1.0"
p2panda-discovery = { version = "0.1.0", features = ["mdns"] }
p2panda-net = "0.1.0"
Expand Down
5 changes: 5 additions & 0 deletions src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::sync::{Arc, RwLock, RwLockWriteGuard};

use anyhow::Result;
use async_trait::async_trait;
use iroh_gossip::proto::topic::Config as GossipConfig;
use p2panda_core::{Extension, Hash, PrivateKey, PruneFlag, PublicKey};
use p2panda_discovery::mdns::LocalDiscovery;
use p2panda_net::{FromNetwork, NetworkBuilder, SyncConfiguration};
Expand Down Expand Up @@ -114,6 +115,10 @@ pub fn run() -> Result<(
let network = NetworkBuilder::new(network_id.into())
.private_key(private_key.clone())
.discovery(LocalDiscovery::new().expect("local discovery service"))
.gossip(GossipConfig {
max_message_size: 7432774432,
..Default::default()
})
.sync(sync_config)
.build()
.await
Expand Down

0 comments on commit f9477b2

Please sign in to comment.