More cleanup.

Also, this MR closes #48
This commit is contained in:
Nadja Reitzenstein 2022-02-26 14:45:17 +01:00
parent ea863e71af
commit 4306b5b691
2 changed files with 3 additions and 5 deletions

View File

@ -296,7 +296,8 @@ impl Inner {
} }
fn replace_state(&self, new_state: MachineState) -> MachineState { fn replace_state(&self, new_state: MachineState) -> MachineState {
self.db.put(&self.id, &new_state); // Ignore for now, nothing we can do either way.
let _ = self.db.put(&self.id, &new_state);
self.state.replace(new_state) self.state.replace(new_state)
} }

View File

@ -113,8 +113,6 @@ fn main() {
} }
} }
let retval;
// Scope to drop everything before exiting. // Scope to drop everything before exiting.
{ {
// Initialize the logging subsystem first to be able to better document the progress from now // Initialize the logging subsystem first to be able to better document the progress from now
@ -126,10 +124,9 @@ fn main() {
info!(log, "Starting"); info!(log, "Starting");
match maybe(matches, log.clone()) { match maybe(matches, log.clone()) {
Ok(_) => retval = 0, Ok(_) => {},
Err(e) => { Err(e) => {
error!(log, "{}", e); error!(log, "{}", e);
retval = -1;
} }
} }
drop(guard); drop(guard);