Clean up the code a little bit

This commit is contained in:
Michael Mikovsky
2025-11-24 08:45:44 -07:00
parent 11045522b8
commit 0c538e9dcf
9 changed files with 21 additions and 222 deletions
+1
View File
@@ -2,6 +2,7 @@ use bincode::{Decode, Encode};
use crate::config::RuntimeConfig;
/// Mostly temporary server message type
#[derive(Debug, Encode, Decode)]
pub enum Announcement {
TestAnnouncement(String),
-4
View File
@@ -85,10 +85,7 @@ impl ClientRuntime {
}
impl ModuleRuntime for ClientRuntime {
// fn init(&mut self) {}
fn is_running(&self) -> bool {
// println!("Checking if running");
!self.thread_handle.is_finished()
}
@@ -97,6 +94,5 @@ impl ModuleRuntime for ClientRuntime {
self.join_signal.store(true, Ordering::Relaxed);
let _ = self.thread_handle.join();
}
// drop(self);
}
}
+1
View File
@@ -2,6 +2,7 @@ use unshell_obfuscate::obfuscated_symbol;
use crate::config::NamedComponent;
/// Publicly facing accessor function for the payload to load inside the breakout modules.
#[obfuscated_symbol]
pub fn get_components() -> Vec<NamedComponent> {
return vec![
+1
View File
@@ -41,6 +41,7 @@ impl Logger for DefaultLogger {
}
pub fn set_logger_box(logger: Box<dyn Logger>) {
#[cfg(feature = "log")]
unsafe {
LOGGER = Box::leak(logger);
}