feat: replace hardcoded buffer sizes with PIPESIZE constant

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:02 -03:00
parent bf48c37dd8
commit 6719dff149
3 changed files with 8 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
use crate::common::PIPESIZE;
use crate::config::Settings;
use crate::services::compression_service::CompressionService;
use crate::services::error::CoreError;
@@ -274,7 +275,7 @@ impl ItemService {
let mut item_out = compression_engine.create(item_path.clone())?;
let mut buffer = [0; 8192];
let mut buffer = [0; PIPESIZE];
let mut total_bytes = 0;
debug!("ITEM_SERVICE: Starting to read and process input data");