I think this is better

This commit is contained in:
Quaternions 2024-01-11 22:25:00 -08:00
parent cef0f38482
commit a9a40cd2f0

View File

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