fix: remove incorrect .dat extension from async item file path

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-25 18:57:18 -03:00
parent 7ef2ac670b
commit cbb5af6ea5

View File

@@ -83,7 +83,7 @@ impl AsyncItemService {
.unwrap_or_else(|| "application/octet-stream".to_string()); .unwrap_or_else(|| "application/octet-stream".to_string());
// Open the file for streaming // Open the file for streaming
let file_path = self.data_dir.join(format!("{}.dat", item_id)); let file_path = self.data_dir.join(item_id.to_string());
let file = tokio::fs::File::open(&file_path).await let file = tokio::fs::File::open(&file_path).await
.map_err(|e| CoreError::Io(e))?; .map_err(|e| CoreError::Io(e))?;
let mut buffered_file = tokio::io::BufReader::new(file); let mut buffered_file = tokio::io::BufReader::new(file);