From a9a40cd2f063c14419df927e5b0e522abba0fc69 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 11 Jan 2024 22:25:00 -0800 Subject: [PATCH] I think this is better --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8cfa66b..c1a526f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -817,7 +817,7 @@ async fn decompile_history_into_git(config:DecompileHistoryConfig)->AResult<()>{ futures::stream::iter(asset_list.into_iter() .map(|asset_version|{ let mut file_path=config.input_folder.clone(); - tokio::task::spawn(async move{ + tokio::task::spawn_blocking(move||{ file_path.push(format!("{}_v{}.rbxl",asset_version.assetId,asset_version.assetVersionNumber)); let file=std::fs::File::open(file_path)?; let contents=generate_decompiled_context(file)?;