cadmus_core/db/runtime.rs
1use once_cell::sync::Lazy;
2use tokio::runtime::Runtime;
3
4/// Global lazy-initialized Tokio runtime for database operations.
5pub static RUNTIME: Lazy<Runtime> = Lazy::new(|| {
6 tracing::info!("initializing global Tokio runtime for database operations");
7 Runtime::new().expect("failed to create Tokio runtime for database operations")
8});