From 9b1868b2c27a0796ea9bdfbbe60282167fa58056 Mon Sep 17 00:00:00 2001 From: Nick Hill Date: Tue, 16 May 2023 14:26:46 -0700 Subject: [PATCH] really fix pruning of cancelled requests from queue --- router/src/queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/src/queue.rs b/router/src/queue.rs index 5a4f9f08..a3fce0ad 100644 --- a/router/src/queue.rs +++ b/router/src/queue.rs @@ -456,7 +456,7 @@ impl State { batch_stats = next_stats; - chosen_indices.push(queue_index - 1); + chosen_indices.push(checked_up_to_index - 1); total_count += 1; if total_count >= config.size_limit { break