diff --git a/rustpad-server/src/rustpad.rs b/rustpad-server/src/rustpad.rs index dfede38..2054fc0 100644 --- a/rustpad-server/src/rustpad.rs +++ b/rustpad-server/src/rustpad.rs @@ -316,9 +316,9 @@ impl Rustpad { for history_op in &state.operations[revision..] { operation = operation.transform(&history_op.operation)?.0; } - if operation.target_len() > 100000 { + if operation.target_len() > 256 * 1024 { bail!( - "target length {} is greater than 100 KB maximum", + "target length {} is greater than 256 KiB maximum", operation.target_len() ); }