From f756c4ee66f149123cdce5003eb9cb0b78e51001 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 11 Jul 2022 16:27:13 +0800 Subject: [PATCH] note stats on quitting the updater thread --- services/status/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/services/status/src/main.rs b/services/status/src/main.rs index 63788b3e8..3913252f6 100644 --- a/services/status/src/main.rs +++ b/services/status/src/main.rs @@ -325,6 +325,7 @@ fn wrapped_main() -> ! { } #[cfg(not(feature="dbg-ecupdate"))] { // if we're not debugging, quit the updater thread -- might as well free up the memory and connections if nobody will ever use it again. + // this frees up 40k runtime RAM + 1 connection in the status thread. send_message(ecup_conn, Message::new_blocking_scalar(ecup::UpdateOp::Quit.to_usize().unwrap(), 0, 0, 0, 0) ).expect("couldn't quit updater thread");