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:
Andrew Phillips
2025-08-25 21:14:58 -03:00
parent f3132ec569
commit bfeba4151e
2 changed files with 9 additions and 7 deletions

View File

@@ -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 {