mixnode: handle SIGTERM (#1417)

* all: cargo upgrade dirs --workspace

* mixnode: remove unused serial dependency

* mixnode: handle SIGTERM and SIGQUIT on unix

* mixnode: some clippy warnings

* changelog: add note
This commit is contained in:
Jon Häggblad
2022-06-29 16:47:03 +02:00
committed by GitHub
parent f2afb42daf
commit f09b984b20
18 changed files with 53 additions and 57 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ pub(crate) struct Hardware {
crypto_hardware: Option<CryptoHardware>,
}
#[allow(clippy::struct_excessive_bools)]
#[derive(Serialize, Debug)]
#[serde(crate = "rocket::serde")]
pub(crate) struct CryptoHardware {
@@ -44,9 +45,9 @@ fn hardware_from_sysinfo(crypto_hardware: Option<CryptoHardware>) -> Option<Hard
let cores = system.cpus();
let num_cores = cores.len();
Some(Hardware {
crypto_hardware,
ram,
num_cores,
crypto_hardware,
})
} else {
None