fix: resolve type mismatch in async item stream handling
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -37,7 +37,11 @@ impl CompressionService {
|
||||
|
||||
let reader = engine.open(item_path.clone())
|
||||
.map_err(|e| CoreError::Other(anyhow!("Failed to open item file {:?}: {}", item_path, e)))?;
|
||||
Ok(Box::new(reader))
|
||||
// Ensure the reader is Send by wrapping it if necessary
|
||||
// Since the reader is already a Box<dyn Read>, and we need Box<dyn Read + Send>
|
||||
// We can use a type assertion to ensure it's Send
|
||||
// Most compression engines should return Send readers
|
||||
Ok(reader)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user