feat: add PIPESIZE constant for consistent buffer sizes

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-25 21:26:33 -03:00
parent bb9901e9bc
commit bf48c37dd8
2 changed files with 6 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ use anyhow::Result;
use rusqlite::Connection;
use crate::common::is_binary::is_binary;
use crate::common::PIPESIZE;
use crate::meta_plugin::MetaPlugin;
#[derive(Debug, Clone, Default)]
@@ -43,7 +44,7 @@ impl BinaryMetaPlugin {
let max_buffer_size = final_options.get("max_buffer_size")
.and_then(|v| v.as_u64())
.unwrap_or(4096) as usize;
.unwrap_or(PIPESIZE as u64 / 2) as usize;
BinaryMetaPlugin {
meta_name: "binary".to_string(),