fix: resolve private field access and type issues

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:09:13 -03:00
parent 3611c93a4a
commit 9f140923bc
4 changed files with 15 additions and 7 deletions

View File

@@ -100,7 +100,7 @@ impl ItemService {
let mut item_path = self.data_path.clone();
item_path.push(item_id.to_string());
let reader = self.compression_service.stream_item_content(item_path, &item_with_meta.item.compression)?;
let reader = self.compression_service.stream_item_content(item_path.clone(), &item_with_meta.item.compression)?;
let metadata = item_with_meta.meta_as_map();
let mime_type = metadata
@@ -114,7 +114,7 @@ impl ItemService {
} else {
// Read only the first 8192 bytes for binary detection
let mut sample_reader = self.compression_service.stream_item_content(
item_path.clone(),
item_path,
&item_with_meta.item.compression
)?;
let mut sample_buffer = vec![0; 8192];
@@ -376,4 +376,12 @@ impl ItemService {
self.get_item(conn, item_id)
}
pub fn get_compression_service(&self) -> &CompressionService {
&self.compression_service
}
pub fn get_data_path(&self) -> &PathBuf {
&self.data_path
}
}