fix: resolve type mismatches in async_item_service and compression_service
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -245,12 +245,12 @@ impl AsyncItemService {
|
||||
let mut bytes_sent = 0;
|
||||
let limited = stream.take_while(move |result| {
|
||||
if bytes_sent >= length {
|
||||
return std::future::ready(false);
|
||||
return false;
|
||||
}
|
||||
if let Ok(chunk) = result {
|
||||
bytes_sent += chunk.len() as u64;
|
||||
}
|
||||
std::future::ready(true)
|
||||
true
|
||||
});
|
||||
Box::pin(limited)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user