mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-23 00:03:33 +02:00
feat: add shared hls cache sessions (#782)
Shared HLS cache session feature and aligns the runtime, cache, provisioning, recovery, custom-response, and documentation paths with the new shared-session model.
This commit is contained in:
@@ -67,8 +67,8 @@ macro_rules! create_resolve_options_function_for_xtream_target {
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
shared::utils::default_resolve_delay_secs(),
|
||||
shared::utils::default_resolve_background(),
|
||||
shared::defaults::default_resolve_delay_secs(),
|
||||
shared::defaults::default_resolve_background(),
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
@@ -48,9 +48,12 @@ use shared::{
|
||||
SourceStats, StreamProperties, TargetStats, UUIDType, XtreamCluster,
|
||||
},
|
||||
utils::{
|
||||
create_alias_uuid, default_as_default, default_probe_delay_secs, default_probe_live_interval, interner_gc,
|
||||
create_alias_uuid, interner_gc,
|
||||
Internable,
|
||||
},
|
||||
defaults::{
|
||||
default_as_default, default_probe_delay_secs, default_probe_live_interval,
|
||||
}
|
||||
};
|
||||
use std::{
|
||||
collections::{HashMap, HashSet},
|
||||
|
||||
@@ -49,7 +49,8 @@ mod tests {
|
||||
use arc_swap::{ArcSwap, ArcSwapOption};
|
||||
use shared::{
|
||||
model::{ConfigPaths, InputFetchMethod, InputType},
|
||||
utils::{default_probe_user_priority, Internable},
|
||||
utils::{Internable},
|
||||
defaults::{default_probe_user_priority},
|
||||
};
|
||||
use std::{collections::HashMap, sync::Arc};
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ impl Default for ResolveOptions {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
flags: ResolveOptionsFlags::Background.into(),
|
||||
resolve_delay: shared::utils::default_resolve_delay_secs(),
|
||||
resolve_delay: shared::defaults::default_resolve_delay_secs(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use std::sync::Arc;
|
||||
use std::time::{Duration, Instant};
|
||||
use shared::foundation::ValueProvider;
|
||||
use shared::utils::default_probe_user_priority;
|
||||
use shared::defaults::default_probe_user_priority;
|
||||
|
||||
create_resolve_options_function_for_xtream_target!(series);
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use std::sync::Arc;
|
||||
use std::time::{Duration, Instant};
|
||||
use shared::foundation::ValueProvider;
|
||||
use shared::utils::default_probe_user_priority;
|
||||
use shared::defaults::default_probe_user_priority;
|
||||
|
||||
create_resolve_options_function_for_xtream_target!(vod);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user