mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-18 16:30:32 +08:00
Revert "refactor: replace tokio Mutex with parking_lot Mutex for improved performance"
This reverts commit 9cc6dde9991f50c745e6dbda6e06a4b9a7a65709.
This commit is contained in:
parent
9cc6dde999
commit
b169ee8149
@ -14,7 +14,6 @@ use crate::{
|
|||||||
};
|
};
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use chrono::Local;
|
use chrono::Local;
|
||||||
use parking_lot::Mutex;
|
|
||||||
use std::{
|
use std::{
|
||||||
fmt,
|
fmt,
|
||||||
fs::{create_dir_all, File},
|
fs::{create_dir_all, File},
|
||||||
@ -23,6 +22,7 @@ use std::{
|
|||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
use tauri_plugin_shell::{process::CommandChild, ShellExt};
|
use tauri_plugin_shell::{process::CommandChild, ShellExt};
|
||||||
|
use tokio::sync::Mutex;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct CoreManager {
|
pub struct CoreManager {
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
use parking_lot::RwLock;
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::{sync::Arc, time::Instant};
|
use std::{sync::Arc, time::Instant};
|
||||||
use tokio::time::Duration;
|
use tokio::{sync::RwLock, time::Duration};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
ipc::monitor::{IpcStreamMonitor, MonitorData, StreamingParser},
|
ipc::monitor::{IpcStreamMonitor, MonitorData, StreamingParser},
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
use parking_lot::RwLock;
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::{sync::Arc, time::Instant};
|
use std::{sync::Arc, time::Instant};
|
||||||
use tokio::time::Duration;
|
use tokio::{sync::RwLock, time::Duration};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
ipc::monitor::{IpcStreamMonitor, MonitorData, StreamingParser},
|
ipc::monitor::{IpcStreamMonitor, MonitorData, StreamingParser},
|
||||||
|
|||||||
@ -181,7 +181,9 @@ mod app_init {
|
|||||||
builder = builder.plugin(tauri_plugin_devtools::init());
|
builder = builder.plugin(tauri_plugin_devtools::init());
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.manage(Mutex::new(state::lightweight::LightWeightState::default()))
|
builder.manage(std::sync::Mutex::new(
|
||||||
|
state::lightweight::LightWeightState::default(),
|
||||||
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Setup deep link handling
|
/// Setup deep link handling
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user