rewrite the update file API

This commit is contained in:
Tamo 2022-10-10 19:57:47 +02:00 committed by Clément Renault
parent 7579a363ab
commit 2ae0806773
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 40 additions and 12 deletions

View file

@ -236,12 +236,15 @@ pub(crate) mod test {
// ========== pushing the task queue
let tasks = create_test_tasks();
/*
let mut task_queue = dump.create_tasks_queue().unwrap();
for (task, update_file) in &tasks {
task_queue.push_task(task, update_file.map(|c| c)).unwrap();
let mut update = task_queue.push_task(task).unwrap();
if let Some(update_file) = update_file {
for u in update_file {
update.push_document(u).unwrap();
}
}
}
*/
// ========== pushing the api keys
let api_keys = create_test_api_keys();