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)?;