// Code to handle the nebula worker // This is an inert version of the nebula worker that does nothing, used when linking to nebula is diabled. // This is useful if you wish to run your own nebula binary, for example on platforms where CGo does not work. use crate::config::TFClientConfig; use crate::daemon::ThreadMessageSender; use std::sync::mpsc::Receiver; use log::error; pub enum NebulaWorkerMessage { Shutdown, ConfigUpdated, WakeUp, } pub fn nebulaworker_main(_config: TFClientConfig, _instance: String, _transmitter: ThreadMessageSender, rx: Receiver) { loop { match rx.recv() { Ok(msg) => match msg { NebulaWorkerMessage::WakeUp => { continue; }, NebulaWorkerMessage::Shutdown => { break; } _ => () }, Err(e) => { error!("{}", e); break; } } } }