diff --git a/src/main.rs b/src/main.rs index 5181388..5c269f9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -335,6 +335,7 @@ async fn upload_scripts(config:UploadConfig)->Result<(),ScriptUploadError>{ let cookie=submissions_api::Cookie::new(&config.session_id).map_err(ScriptUploadError::Cookie)?; let api=&submissions_api::external::Context::new(config.api_url,cookie).map_err(ScriptUploadError::Reqwest)?; + // load all script files let ( allowed_set_result, allowed_map_result, @@ -409,6 +410,7 @@ async fn upload_scripts(config:UploadConfig)->Result<(),ScriptUploadError>{ ).await.map_err(ScriptUploadError::GOCPolicyBlocked) }); + // run futures tokio::try_join!(replace_fut,allowed_fut,blocked_fut)?; Ok(())