perf: optimize network requests and update logic to support aborting

This commit is contained in:
wonfen
2025-05-04 11:25:48 +08:00
parent 779291151e
commit 23b0493d0b
4 changed files with 14 additions and 12 deletions

View File

@@ -1,5 +1,4 @@
use std::sync::{Arc, Mutex};
use reqwest::header::HeaderMap;
pub struct MihomoData {
pub(crate) proxies: serde_json::Value,
@@ -10,7 +9,7 @@ pub struct MihomoData {
pub struct MihomoManager {
pub(crate) mihomo_server: String,
pub(crate) data: Arc<Mutex<MihomoData>>,
pub(crate) headers: HeaderMap,
pub(crate) client: reqwest::Client,
}
#[cfg(feature = "debug")]