Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

zeta: Put back 15s reject debounce (#43958)

Agus Zubiagab27ad98520a7
diff --git a/crates/zeta/src/zeta.rs b/crates/zeta/src/zeta.rs
index 4203ea8fd6d..909f21200cc 100644
--- a/crates/zeta/src/zeta.rs
+++ b/crates/zeta/src/zeta.rs
@@ -996,7 +996,7 @@ impl Zeta {
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(2);
+ const REJECT_REQUEST_DEBOUNCE: Duration = Duration::from_secs(15);
if !reached_request_limit {
cx.background_executor()
.timer(REJECT_REQUEST_DEBOUNCE)