[object Object]

← back to Exo

set max_transmit_size on gossipsub to 1MB. Fixes large message erorr

19e90572e6c5f0e2c52d0b230ec2c57c6957c8b7 · 2025-11-06 11:18:48 -0800 · Alex Cheema

Files touched

Diff

commit 19e90572e6c5f0e2c52d0b230ec2c57c6957c8b7
Author: Alex Cheema <41707476+AlexCheema@users.noreply.github.com>
Date:   Thu Nov 6 11:18:48 2025 -0800

    set max_transmit_size on gossipsub to 1MB. Fixes large message erorr
---
 rust/networking/src/swarm.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rust/networking/src/swarm.rs b/rust/networking/src/swarm.rs
index f4a8117a..8be3f160 100644
--- a/rust/networking/src/swarm.rs
+++ b/rust/networking/src/swarm.rs
@@ -134,6 +134,7 @@ mod behaviour {
             MessageAuthenticity::Signed(keypair.clone()),
             ConfigBuilder::default()
                 .publish_queue_duration(Duration::from_secs(15))
+                .max_transmit_size(1024 * 1024)
                 .validation_mode(ValidationMode::Strict)
                 .build()
                 .expect("the configuration should always be valid"),

← e6068196 show ips on dashboard  ·  back to Exo  ·  MLX LM type stubs ff00b165 →