Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Increase queue flush debounce time
Joseph T. Lyons1989094e6dc0
diff --git a/crates/client/src/telemetry.rs b/crates/client/src/telemetry.rsindex 5e97382d704..0118832fe03 100644--- a/crates/client/src/telemetry.rs+++ b/crates/client/src/telemetry.rs@@ -125,7 +125,7 @@ const MAX_QUEUE_LEN: usize = 50;const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(1);#[cfg(not(debug_assertions))]-const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(30);+const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(120);impl Telemetry {pub fn new(client: Arc<dyn HttpClient>, cx: &AppContext) -> Arc<Self> {diff --git a/crates/client2/src/telemetry.rs b/crates/client2/src/telemetry.rsindex e1a7d3f41e9..e27bc3a4980 100644--- a/crates/client2/src/telemetry.rs+++ b/crates/client2/src/telemetry.rs@@ -124,7 +124,7 @@ const MAX_QUEUE_LEN: usize = 50;const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(1);#[cfg(not(debug_assertions))]-const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(30);+const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(120);impl Telemetry {pub fn new(client: Arc<dyn HttpClient>, cx: &mut AppContext) -> Arc<Self> {