diff options
Diffstat (limited to 'stream/src/lib.rs')
| -rw-r--r-- | stream/src/lib.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/stream/src/lib.rs b/stream/src/lib.rs index 424e44b..1407643 100644 --- a/stream/src/lib.rs +++ b/stream/src/lib.rs @@ -25,7 +25,7 @@ use std::{ io::{Read, Seek, SeekFrom}, ops::Range, path::PathBuf, - sync::{Arc, LazyLock, Mutex}, + sync::Arc, }; use stream_info::{stream_info, write_stream_info}; @@ -39,19 +39,11 @@ pub struct Config { #[serde(default)] pub offer_av1: bool, } -pub static CONF_PRELOAD: Mutex<Option<Config>> = Mutex::new(None); -static CONF: LazyLock<Config> = LazyLock::new(|| { - CONF_PRELOAD - .lock() - .unwrap() - .take() - .expect("stream config not preloaded. logic error") -}); - pub struct SMediaInfo { pub title: Option<String>, pub files: BTreeSet<PathBuf>, pub cache: Arc<Cache>, + pub config: Arc<Config>, } pub struct StreamHead { |