entries.len() could > batch.size in prefill, so need to filter as well.

Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
This commit is contained in:
Wang, Yi A 2024-11-19 23:27:45 -08:00
parent 52e48739a5
commit 5f52e2e38e
1 changed files with 0 additions and 5 deletions

View File

@ -369,11 +369,6 @@ async fn filter_batch(
) -> Option<CachedBatch> { ) -> Option<CachedBatch> {
let mut batch = next_batch?; let mut batch = next_batch?;
// No need to filter
if batch.size as usize == entries.len() {
return Some(batch);
}
let id = batch.id; let id = batch.id;
// Retain only requests that are still in entries // Retain only requests that are still in entries