mf_engine/
config.rs

1use once_cell::sync::Lazy;
2use std::sync::atomic::{AtomicBool, AtomicU64};
3
4#[derive(Debug)]
5pub struct ZenConfig {
6    pub nodes_in_context: AtomicBool,
7    pub function_timeout_millis: AtomicU64,
8}
9
10impl Default for ZenConfig {
11    fn default() -> Self {
12        Self {
13            nodes_in_context: AtomicBool::new(true),
14            function_timeout_millis: AtomicU64::new(5_000),
15        }
16    }
17}
18
19pub static ZEN_CONFIG: Lazy<ZenConfig> = Lazy::new(|| Default::default());