lint fixes

This commit is contained in:
rmanach 2023-04-22 15:34:52 +02:00
parent 42da6f8840
commit 407611bba1

View File

@ -107,11 +107,9 @@ impl<H: Handler, N: Notifier> Worker<H, N> {
Worker::<H, N>::set_status(&status, WorkerStatus::Running);
// TODO: the message could be requeued if needed
if let Err(e) = handler.handle(runner.run()) {
if let HandlerError::Unknown = e {
Worker::<H, N>::set_status(&status, WorkerStatus::Failed);
break;
}
if let Err(HandlerError::Unknown) = handler.handle(runner.run()) {
Worker::<H, N>::set_status(&status, WorkerStatus::Failed);
break;
}
// TODO: collect a message from the handler (modify the signature)
notifier.send(Message::empty());