Return a single Option from EventCoalescer
This commit is contained in:
parent
ac5f8254a2
commit
a9fce19048
2 changed files with 132 additions and 98 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue