Return a single Option from EventCoalescer

This commit is contained in:
Joseph T. Lyons 2024-01-11 12:27:59 -05:00
parent ac5f8254a2
commit a9fce19048
2 changed files with 132 additions and 98 deletions

View file

@ -407,7 +407,7 @@ impl Telemetry {
let period_data = state.event_coalescer.log_event(environment);
drop(state);
if let (Some((start, end)), Some(environment)) = period_data {
if let Some((start, end, environment)) = period_data {
let event = Event::Edit {
duration: end.timestamp_millis() - start.timestamp_millis(),
environment,