feat: update default max_buffer_size to use PIPESIZE

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:27:59 -03:00
parent 33b5cc2e92
commit c52ab9ed5f
2 changed files with 2 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ impl MetaPlugin for BinaryMetaPlugin {
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> { fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
let mut options = std::collections::HashMap::new(); let mut options = std::collections::HashMap::new();
options.insert("max_buffer_size".to_string(), serde_yaml::Value::Number(4096.into())); options.insert("max_buffer_size".to_string(), serde_yaml::Value::Number(PIPESIZE.into()));
options options
} }

View File

@@ -188,7 +188,7 @@ impl MetaPlugin for MagicFileMetaPlugin {
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> { fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
let mut options = std::collections::HashMap::new(); let mut options = std::collections::HashMap::new();
options.insert("max_buffer_size".to_string(), serde_yaml::Value::Number(4096.into())); options.insert("max_buffer_size".to_string(), serde_yaml::Value::Number(PIPESIZE.into()));
options options
} }