Add reminder for the future
This commit is contained in:
parent
b4444bdfc0
commit
bddf827bc1
2 changed files with 5 additions and 1 deletions
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue