Add reminder for the future

This commit is contained in:
Joseph T. Lyons 2024-01-10 21:02:34 -05:00
parent b4444bdfc0
commit bddf827bc1
2 changed files with 5 additions and 1 deletions

View file

@ -204,7 +204,7 @@ impl Telemetry {
#[cfg(not(any(test, feature = "test-support")))] #[cfg(not(any(test, feature = "test-support")))]
fn shutdown_telemetry(self: &Arc<Self>) -> impl Future<Output = ()> { fn shutdown_telemetry(self: &Arc<Self>) -> impl Future<Output = ()> {
self.report_app_event("close"); self.report_app_event("close");
self.flush_events(); // TODO: close final edit period and make sure it's sent
Task::ready(()) Task::ready(())
} }

View file

@ -26,6 +26,10 @@ impl EventCoalescer {
self.log_event_with_time(Utc::now(), environment) self.log_event_with_time(Utc::now(), environment)
} }
// pub fn close_current_period(&mut self) -> Option<(DateTime<Utc>, DateTime<Utc>)> {
// self.environment.map(|env| self.log_event(env)).flatten()
// }
fn log_event_with_time( fn log_event_with_time(
&mut self, &mut self,
log_time: DateTime<Utc>, log_time: DateTime<Utc>,