mirror of
https://github.com/perstarkse/minne.git
synced 2026-07-02 02:51:44 +02:00
release: 1.0.5
fix fix
This commit is contained in:
@@ -47,13 +47,13 @@ pub fn validate_ingest_input(
|
||||
)));
|
||||
}
|
||||
|
||||
if let Some(content) = content {
|
||||
if content.len() > config.ingest_max_content_bytes {
|
||||
return Err(IngestValidationError::PayloadTooLarge(format!(
|
||||
"content is too large: maximum allowed is {} bytes",
|
||||
config.ingest_max_content_bytes
|
||||
)));
|
||||
}
|
||||
if let Some(content) = content
|
||||
&& content.len() > config.ingest_max_content_bytes
|
||||
{
|
||||
return Err(IngestValidationError::PayloadTooLarge(format!(
|
||||
"content is too large: maximum allowed is {} bytes",
|
||||
config.ingest_max_content_bytes
|
||||
)));
|
||||
}
|
||||
|
||||
if ctx.len() > config.ingest_max_context_bytes {
|
||||
|
||||
Reference in New Issue
Block a user