Restore commented-out code

This commit is contained in:
Joseph T. Lyons 2023-11-19 21:58:42 -05:00
parent e0f8615d52
commit 8e612e4287
4 changed files with 14 additions and 14 deletions

View file

@ -111,16 +111,16 @@ pub enum ClickhouseEvent {
}, },
} }
// #[cfg(debug_assertions)] #[cfg(debug_assertions)]
// const MAX_QUEUE_LEN: usize = 1; const MAX_QUEUE_LEN: usize = 1;
// #[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
const MAX_QUEUE_LEN: usize = 10; const MAX_QUEUE_LEN: usize = 10;
// #[cfg(debug_assertions)] #[cfg(debug_assertions)]
// const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(1); const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(1);
// #[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(30); const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(30);
impl Telemetry { impl Telemetry {

View file

@ -109,16 +109,16 @@ pub enum ClickhouseEvent {
}, },
} }
// #[cfg(debug_assertions)] #[cfg(debug_assertions)]
// const MAX_QUEUE_LEN: usize = 1; const MAX_QUEUE_LEN: usize = 1;
// #[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
const MAX_QUEUE_LEN: usize = 10; const MAX_QUEUE_LEN: usize = 10;
// #[cfg(debug_assertions)] #[cfg(debug_assertions)]
// const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(1); const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(1);
// #[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(30); const DEBOUNCE_INTERVAL: Duration = Duration::from_secs(30);
impl Telemetry { impl Telemetry {

View file

@ -8985,7 +8985,7 @@ impl Editor {
) { ) {
} }
// #[cfg(not(any(test, feature = "test-support")))] #[cfg(not(any(test, feature = "test-support")))]
fn report_editor_event( fn report_editor_event(
&self, &self,
operation: &'static str, operation: &'static str,

View file

@ -173,7 +173,7 @@ fn main() {
// }) // })
// .detach(); // .detach();
client.telemetry().start(installation_id, session_id, cx); // client.telemetry().start(installation_id, session_id, cx);
let app_state = Arc::new(AppState { let app_state = Arc::new(AppState {
languages, languages,