mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-22 14:57:56 +01:00
parent
ea863e71af
commit
4306b5b691
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user