Extract http
from util
(#11680)
This avoids the CLI linking libssl etc... Release Notes: - N/A
This commit is contained in:
parent
df41435d1a
commit
5515ba6043
77 changed files with 419 additions and 336 deletions
|
@ -5,6 +5,7 @@ use db::kvp::KEY_VALUE_STORE;
|
|||
use gpui::{App, AppContext, SemanticVersion};
|
||||
use isahc::config::Configurable;
|
||||
|
||||
use http::{self, HttpClient, HttpClientWithUrl};
|
||||
use paths::{CRASHES_DIR, CRASHES_RETIRED_DIR};
|
||||
use release_channel::ReleaseChannel;
|
||||
use release_channel::RELEASE_CHANNEL;
|
||||
|
@ -17,10 +18,7 @@ use std::{
|
|||
sync::{atomic::Ordering, Arc},
|
||||
};
|
||||
use std::{io::Write, panic, sync::atomic::AtomicU32, thread};
|
||||
use util::{
|
||||
http::{self, HttpClient, HttpClientWithUrl},
|
||||
paths, ResultExt,
|
||||
};
|
||||
use util::{paths, ResultExt};
|
||||
|
||||
use crate::stdout_is_a_pty;
|
||||
|
||||
|
@ -198,13 +196,13 @@ pub fn monitor_main_thread_hangs(
|
|||
|
||||
use parking_lot::Mutex;
|
||||
|
||||
use http::Method;
|
||||
use std::{
|
||||
ffi::c_int,
|
||||
sync::{mpsc, OnceLock},
|
||||
time::Duration,
|
||||
};
|
||||
use telemetry_events::{BacktraceFrame, HangReport};
|
||||
use util::http::Method;
|
||||
|
||||
use nix::sys::pthread;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue