Skip to content

Commit

Permalink
[feat] Increase max message size
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodolsky committed Apr 20, 2024
1 parent 2a6b3f4 commit 35233ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iroh-sync/src/net/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 35233ae

Please sign in to comment.