Remove immediate flush mode

Allow flush method to be called publicly. This is a better, simpler solution, that allows for better control over flushing.
This commit is contained in:
Joseph T. Lyons 2024-01-06 20:27:30 -05:00
parent 520c433af5
commit 5344296c9a
4 changed files with 27 additions and 36 deletions

View file

@ -175,13 +175,11 @@ fn main() {
telemetry.start(installation_id, session_id, cx);
telemetry.report_setting_event("theme", cx.theme().name.to_string());
telemetry.report_setting_event("keymap", BaseKeymap::get_global(cx).to_string());
telemetry.report_app_event(
match existing_installation_id_found {
Some(false) => "first open",
_ => "open",
},
true,
);
telemetry.report_app_event(match existing_installation_id_found {
Some(false) => "first open",
_ => "open",
});
telemetry.flush_clickhouse_events();
let app_state = Arc::new(AppState {
languages: languages.clone(),