Don't open files unescessary in dev builds

This commit is contained in:
Mikayla 2024-01-12 22:44:07 -08:00
parent 1d7dc96135
commit 4d6dfa319d
No known key found for this signature in database

View File

@ -14,6 +14,7 @@ use sysinfo::{
};
use tempfile::NamedTempFile;
use util::http::HttpClient;
#[cfg(not(debug_assertions))]
use util::ResultExt;
use util::{channel::ReleaseChannel, TryFutureExt};
@ -168,6 +169,7 @@ impl Telemetry {
event_coalescer: EventCoalescer::new(),
}));
#[cfg(not(debug_assertions))]
cx.background_executor()
.spawn({
let state = state.clone();