mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 02:17:35 +03:00
Restore commented-out code
This commit is contained in:
parent
e0f8615d52
commit
8e612e4287
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user