Finish newer forge versions

This commit is contained in:
Jai A
2021-10-24 14:25:24 -07:00
parent 673658dfd2
commit d8332a27e5
8 changed files with 266 additions and 109 deletions

View File

@@ -145,6 +145,8 @@ pub async fn retrieve_data() -> Result<(), Error> {
type_: version.type_,
inherits_from: version.inherits_from,
libraries: libs,
processors: None,
data: None
})?,
Some("application/json".to_string()),
)
@@ -183,7 +185,7 @@ pub async fn retrieve_data() -> Result<(), Error> {
let chunk: Vec<_> = versions.by_ref().take(10).collect();
futures::future::try_join_all(chunk).await?;
std::thread::sleep(Duration::from_secs(1));
tokio::time::sleep(Duration::from_secs(1)).await;
chunk_index += 1;