lint fixes
This commit is contained in:
parent
42da6f8840
commit
407611bba1
@ -107,12 +107,10 @@ impl<H: Handler, N: Notifier> Worker<H, N> {
|
|||||||
Worker::<H, N>::set_status(&status, WorkerStatus::Running);
|
Worker::<H, N>::set_status(&status, WorkerStatus::Running);
|
||||||
|
|
||||||
// TODO: the message could be requeued if needed
|
// TODO: the message could be requeued if needed
|
||||||
if let Err(e) = handler.handle(runner.run()) {
|
if let Err(HandlerError::Unknown) = handler.handle(runner.run()) {
|
||||||
if let HandlerError::Unknown = e {
|
|
||||||
Worker::<H, N>::set_status(&status, WorkerStatus::Failed);
|
Worker::<H, N>::set_status(&status, WorkerStatus::Failed);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// TODO: collect a message from the handler (modify the signature)
|
// TODO: collect a message from the handler (modify the signature)
|
||||||
notifier.send(Message::empty());
|
notifier.send(Message::empty());
|
||||||
Worker::<H, N>::set_status(&status, WorkerStatus::Pending);
|
Worker::<H, N>::set_status(&status, WorkerStatus::Pending);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user