Revert "fix: service unexpected status after restart app in unix (#5768)"

This reverts commit 2995f61087.
This commit is contained in:
Tunglies
2025-12-12 12:46:51 +08:00
parent 1a2d45555d
commit cea78289c1
2 changed files with 12 additions and 36 deletions

View File

@@ -1,3 +1,5 @@
use std::time::Duration;
pub mod network {
pub const DEFAULT_EXTERNAL_CONTROLLER: &str = "127.0.0.1:9097";
@@ -18,14 +20,16 @@ pub mod network {
}
pub mod timing {
use std::time::Duration;
use super::Duration;
pub const CONFIG_UPDATE_DEBOUNCE: Duration = Duration::from_millis(300);
pub const EVENT_EMIT_DELAY: Duration = Duration::from_millis(20);
pub const STARTUP_ERROR_DELAY: Duration = Duration::from_secs(2);
pub const ERROR_BATCH_DELAY: Duration = Duration::from_millis(300);
#[cfg(target_os = "windows")]
pub const SERVICE_WAIT_MAX: Duration = Duration::from_millis(3000);
#[cfg(target_os = "windows")]
pub const SERVICE_WAIT_INTERVAL: Duration = Duration::from_millis(200);
}