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:
parent
52e48739a5
commit
5f52e2e38e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue