mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-22 06:47:56 +01:00
parent
ea863e71af
commit
4306b5b691
@ -296,7 +296,8 @@ impl Inner {
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
|
@ -113,8 +113,6 @@ fn main() {
|
||||
}
|
||||
}
|
||||
|
||||
let retval;
|
||||
|
||||
// Scope to drop everything before exiting.
|
||||
{
|
||||
// Initialize the logging subsystem first to be able to better document the progress from now
|
||||
@ -126,10 +124,9 @@ fn main() {
|
||||
info!(log, "Starting");
|
||||
|
||||
match maybe(matches, log.clone()) {
|
||||
Ok(_) => retval = 0,
|
||||
Ok(_) => {},
|
||||
Err(e) => {
|
||||
error!(log, "{}", e);
|
||||
retval = -1;
|
||||
}
|
||||
}
|
||||
drop(guard);
|
||||
|
Loading…
Reference in New Issue
Block a user