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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user