aboutsummaryrefslogtreecommitdiff
path: root/transcoder/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'transcoder/src/lib.rs')
-rw-r--r--transcoder/src/lib.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/transcoder/src/lib.rs b/transcoder/src/lib.rs
index 50e445c..0b39b51 100644
--- a/transcoder/src/lib.rs
+++ b/transcoder/src/lib.rs
@@ -6,7 +6,7 @@
#![feature(exit_status_error)]
use serde::{Deserialize, Serialize};
-use std::sync::{LazyLock, Mutex};
+use std::sync::Mutex;
pub mod fragment;
pub mod image;
@@ -26,13 +26,4 @@ pub struct Config {
pub x264_preset: Option<String>,
}
-pub static CONF_PRELOAD: Mutex<Option<Config>> = Mutex::new(None);
-static CONF: LazyLock<Config> = LazyLock::new(|| {
- CONF_PRELOAD
- .lock()
- .unwrap()
- .take()
- .expect("transcoder config not preloaded. logic error")
-});
-
static LOCAL_VIDEO_TRANSCODING_TASKS: Mutex<()> = Mutex::new(());