refactor: 精简运行时重复初始化

统一服务与 CLI 的数据库初始化入口,由视频流管理器负责 WebRTC 采集源同步,并将 MSD 目录创建收敛到控制器内部。
This commit is contained in:
mofeng-git
2026-08-26 11:37:39 +08:00
parent 486f3887c2
commit 0054100414
6 changed files with 70 additions and 81 deletions

View File

@@ -62,12 +62,8 @@ impl MsdController {
),
}
if let Err(e) = std::fs::create_dir_all(&self.images_path) {
warn!("Failed to create images directory: {}", e);
}
if let Err(e) = std::fs::create_dir_all(&self.ventoy_dir) {
warn!("Failed to create ventoy directory: {}", e);
}
tokio::fs::create_dir_all(&self.images_path).await?;
tokio::fs::create_dir_all(&self.ventoy_dir).await?;
info!("Fetching MSD function from OtgService");
let msd_func = self