feat: enhance service startup logic with user preference-based sidecar fallback

This commit is contained in:
wonfen
2025-03-28 03:18:37 +08:00
parent e2046f3e48
commit 59caa22431
2 changed files with 91 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ pub struct ServiceState {
pub install_count: u32, // 24小时内安装次数
pub last_check_time: u64, // 上次检查时间
pub last_error: Option<String>, // 上次错误信息
pub prefer_sidecar: bool, // 用户是否偏好sidecar模式如拒绝安装服务或安装失败
}
impl ServiceState {