fix: enhance startup speed and fix connection issues during initialization

This commit is contained in:
Tunglies
2025-09-02 23:10:02 +08:00
parent b51797e238
commit 0bb9cb5097
5 changed files with 25 additions and 29 deletions

View File

@@ -405,14 +405,6 @@ pub async fn init_resources() -> Result<()> {
for file in file_list.iter() {
let src_path = res_dir.join(file);
let dest_path = app_dir.join(file);
logging!(
debug,
Type::Setup,
true,
"src_path: {:?}, dest_path: {:?}",
src_path,
dest_path
);
let handle_copy = |src: PathBuf, dest: PathBuf, file: String| async move {
match fs::copy(&src, &dest).await {