mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 09:02:26 +03:00
Don't open files unescessary in dev builds
This commit is contained in:
parent
1d7dc96135
commit
4d6dfa319d
@ -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 New Issue
Block a user