Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Restore commented-out code
Joseph T. Lyons8e612e4287b0
diff --git a/crates/client/src/telemetry.rs b/crates/client/src/telemetry.rsindex 9319d1d8410..8f7fbeb83d3 100644--- a/crates/client/src/telemetry.rs+++ b/crates/client/src/telemetry.rs@@ -111,16 +111,16 @@ pub enum ClickhouseEvent {},}-// #[cfg(debug_assertions)]-// const MAX_QUEUE_LEN: usize = 1;+#[cfg(debug_assertions)]+const MAX_QUEUE_LEN: usize = 1;-// #[cfg(not(debug_assertions))]+#[cfg(not(debug_assertions))]const MAX_QUEUE_LEN: usize = 10;-// #[cfg(debug_assertions)]-// const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(1);+#[cfg(debug_assertions)]+const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(1);-// #[cfg(not(debug_assertions))]+#[cfg(not(debug_assertions))]const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(30);impl Telemetry {diff --git a/crates/client2/src/telemetry.rs b/crates/client2/src/telemetry.rsindex 5020caa6f86..9c88d1102c2 100644--- a/crates/client2/src/telemetry.rs+++ b/crates/client2/src/telemetry.rs@@ -109,16 +109,16 @@ pub enum ClickhouseEvent {},}-// #[cfg(debug_assertions)]-// const MAX_QUEUE_LEN: usize = 1;+#[cfg(debug_assertions)]+const MAX_QUEUE_LEN: usize = 1;-// #[cfg(not(debug_assertions))]+#[cfg(not(debug_assertions))]const MAX_QUEUE_LEN: usize = 10;-// #[cfg(debug_assertions)]-// const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(1);+#[cfg(debug_assertions)]+const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(1);-// #[cfg(not(debug_assertions))]+#[cfg(not(debug_assertions))]const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(30);impl Telemetry {diff --git a/crates/editor2/src/editor.rs b/crates/editor2/src/editor.rsindex dc83c02b96d..be621bc5f6a 100644--- a/crates/editor2/src/editor.rs+++ b/crates/editor2/src/editor.rs@@ -8985,7 +8985,7 @@ impl Editor {) {}- // #[cfg(not(any(test, feature = "test-support")))]+ #[cfg(not(any(test, feature = "test-support")))]fn report_editor_event(&self,operation: &'static str,diff --git a/crates/zed2/src/main.rs b/crates/zed2/src/main.rsindex 9f17332474d..470ecce8b15 100644--- a/crates/zed2/src/main.rs+++ b/crates/zed2/src/main.rs@@ -173,7 +173,7 @@ fn main() {// })// .detach();- client.telemetry().start(installation_id, session_id, cx);+ // client.telemetry().start(installation_id, session_id, cx);let app_state = Arc::new(AppState {languages,