Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
zeta: Smaller reject batches (#43942)
Agus Zubiagaefff602909ef
diff --git a/crates/zeta/src/zeta.rs b/crates/zeta/src/zeta.rsindex 1f0edf99e59..b54016eb835 100644--- a/crates/zeta/src/zeta.rs+++ b/crates/zeta/src/zeta.rs@@ -993,7 +993,7 @@ impl Zeta {});let reached_request_limit =- self.rejected_predictions.len() >= MAX_EDIT_PREDICTION_REJECTIONS_PER_REQUEST;+ self.rejected_predictions.len() >= MAX_EDIT_PREDICTION_REJECTIONS_PER_REQUEST / 2;let reject_tx = self.reject_predictions_tx.clone();self.reject_predictions_debounce_task = Some(cx.spawn(async move |_this, cx| {const REJECT_REQUEST_DEBOUNCE: Duration = Duration::from_secs(15);