From 35233ae6ae8f07dc5cdb60c50564c7ca80ce349f Mon Sep 17 00:00:00 2001 From: Pasha Podolsky Date: Tue, 16 Apr 2024 14:51:33 +0300 Subject: [PATCH] [feat] Increase max message size --- iroh-sync/src/net/codec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iroh-sync/src/net/codec.rs b/iroh-sync/src/net/codec.rs index 591380a785c..f3a74ca96c4 100644 --- a/iroh-sync/src/net/codec.rs +++ b/iroh-sync/src/net/codec.rs @@ -19,7 +19,7 @@ use crate::{ #[derive(Debug, Default)] struct SyncCodec; -const MAX_MESSAGE_SIZE: usize = 1024 * 1024 * 1024; // This is likely too large, but lets have some restrictions +const MAX_MESSAGE_SIZE: usize = 4 * 1024 * 1024 * 1024; // This is likely too large, but lets have some restrictions impl Decoder for SyncCodec { type Item = Message;