refactor: use std LazyLock

This commit is contained in:
zhom committed 2026-09-26 10:46:29 +04:00
1 parent 276d5b56f7
commit f930da1a67
40 files changed
+116 -171

No files matched your search

+3 -4
View File
@@ -5,10 +5,9 @@ use crate::proxy_storage::{
use std::path::{Path, PathBuf};
use std::process::Stdio;
use std::sync::atomic::{AtomicBool, Ordering};
lazy_static::lazy_static! {
static ref PROXY_PROCESSES: std::sync::Mutex<std::collections::HashMap<String, u32>> =
std::sync::Mutex::new(std::collections::HashMap::new());
}
static PROXY_PROCESSES: std::sync::LazyLock<
std::sync::Mutex<std::collections::HashMap<String, u32>>,
> = std::sync::LazyLock::new(|| std::sync::Mutex::new(std::collections::HashMap::new()));
static SIDECAR_VERSION_VERIFIED: AtomicBool = AtomicBool::new(false);
const RETAINED_PROXY_LOGS: usize = 20;