mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-13 02:54:26 +08:00
refactor: 精简运行时重复初始化
统一服务与 CLI 的数据库初始化入口,由视频流管理器负责 WebRTC 采集源同步,并将 MSD 目录创建收敛到控制器内部。
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user