mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-24 08:22:10 -04:00
Missing job error from serde_json::Error
This commit is contained in:
@@ -26,6 +26,8 @@ pub enum JobError {
|
||||
StateEncode(#[from] EncodeError),
|
||||
#[error("Job state decode error: {0}")]
|
||||
StateDecode(#[from] DecodeError),
|
||||
#[error("Job metadata serialization error: {0}")]
|
||||
MetadataSerialization(#[from] serde_json::Error),
|
||||
#[error("Tried to resume a job with unknown name: job <name='{1}', uuid='{0}'>")]
|
||||
UnknownJobName(Uuid, String),
|
||||
#[error(
|
||||
|
||||
@@ -307,8 +307,7 @@ impl StatefulJob for IndexerJob {
|
||||
.expect("critical error: non-negative duration"),
|
||||
);
|
||||
|
||||
// TODO: Serialize and return metadata here
|
||||
Ok(None)
|
||||
Ok(Some(serde_json::to_vec(state)?))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user