mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-03 08:54:04 +00:00
Don't open files unescessary in dev builds
This commit is contained in:
parent
1d7dc96135
commit
4d6dfa319d
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue