We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b772b0 commit 29ac4feCopy full SHA for 29ac4fe
router/src/queue.rs
@@ -267,7 +267,7 @@ impl<B: BatchType> Queue<B> {
267
);
268
269
// Avoid more granular analysis if possible
270
- if <B>::batch_max_weight(&batch_stats, total_count + 1) > config.weight_limit {
+ if <B>::batch_max_weight(&next_stats, total_count + 1) > config.weight_limit {
271
// We aren't sure whether this next request will fit, so populate
272
// a btree with the current batch of requests, the set of
273
// requests already evaluated, and this one, and perform more
@@ -428,4 +428,4 @@ impl From<&GenerateParameters> for Option<RequestedDetails> {
428
top_n_toks: parameters.include_top_n,
429
})
430
}
431
-}
+}
0 commit comments