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 -2
View File
@@ -51,14 +51,14 @@ impl SharedNodeStats {
guard.update_time = snapshot_time;
guard.packets_received_since_startup += new_received;
for (mix, count) in new_sent.iter() {
for (mix, count) in &new_sent {
*guard
.packets_sent_since_startup
.entry(mix.clone())
.or_insert(0) += *count;
}
for (mix, count) in new_dropped.iter() {
for (mix, count) in &new_dropped {
*guard
.packets_explicitly_dropped_since_last_update
.entry(mix.clone())