process_task updates task events

This commit is contained in:
ad hoc
2022-06-02 15:04:33 +02:00
parent b594d49def
commit 64e3096790
4 changed files with 16 additions and 115 deletions

View File

@ -68,9 +68,9 @@ impl TaskEvent {
}
}
pub fn failed(error: ResponseError) -> Self {
pub fn failed(error: impl Into<ResponseError>) -> Self {
Self::Failed {
error,
error: error.into(),
timestamp: OffsetDateTime::now_utc(),
}
}