mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-10 04:09:37 +00:00
Rename field in telemetry struct
This commit is contained in:
parent
9df29fb347
commit
b4444bdfc0
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ struct TelemetryState {
|
||||||
log_file: Option<NamedTempFile>,
|
log_file: Option<NamedTempFile>,
|
||||||
is_staff: Option<bool>,
|
is_staff: Option<bool>,
|
||||||
first_event_datetime: Option<DateTime<Utc>>,
|
first_event_datetime: Option<DateTime<Utc>>,
|
||||||
edit_activity: EventCoalescer,
|
event_coalescer: EventCoalescer,
|
||||||
}
|
}
|
||||||
|
|
||||||
const EVENTS_URL_PATH: &'static str = "/api/events";
|
const EVENTS_URL_PATH: &'static str = "/api/events";
|
||||||
|
@ -164,7 +164,7 @@ impl Telemetry {
|
||||||
log_file: None,
|
log_file: None,
|
||||||
is_staff: None,
|
is_staff: None,
|
||||||
first_event_datetime: None,
|
first_event_datetime: None,
|
||||||
edit_activity: EventCoalescer::new(),
|
event_coalescer: EventCoalescer::new(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
cx.observe_global::<SettingsStore>({
|
cx.observe_global::<SettingsStore>({
|
||||||
|
@ -404,7 +404,7 @@ impl Telemetry {
|
||||||
|
|
||||||
pub fn log_edit_event(self: &Arc<Self>, environment: &'static str) {
|
pub fn log_edit_event(self: &Arc<Self>, environment: &'static str) {
|
||||||
let mut state = self.state.lock();
|
let mut state = self.state.lock();
|
||||||
let coalesced_duration = state.edit_activity.log_event(environment);
|
let coalesced_duration = state.event_coalescer.log_event(environment);
|
||||||
drop(state);
|
drop(state);
|
||||||
|
|
||||||
if let Some((start, end)) = coalesced_duration {
|
if let Some((start, end)) = coalesced_duration {
|
||||||
|
|
Loading…
Reference in a new issue