register and insert dump task in scheduler

This commit is contained in:
ad hoc 2022-05-17 12:15:37 +02:00
parent 737b891a41
commit 2f0625a984
No known key found for this signature in database
GPG Key ID: 4F00A782990CC643

View File

@ -148,7 +148,8 @@ impl TaskQueue {
let id = task.id;
let uid = match task.index_uid {
Some(uid) => TaskListIdentifier::Index(uid.into_inner()),
None => unreachable!(),
None if matches!(task.content, TaskContent::Dump { .. }) => TaskListIdentifier::Dump,
None => unreachable!("invalid task state"),
};
let kind = match task.content {
TaskContent::DocumentAddition {