0.1.17
build / test (push) Waiting to run

This commit is contained in:
Mateusz Gruszczyński committed 2026-11-17 16:50:28 +01:00
1 parent 528017b0e6
commit 9e65aa0103
27 files changed
+1053 -101

No files matched your search

+5
View File
@@ -28,6 +28,8 @@ pub struct Options {
pub stream_port: Option<u16>,
/// HTSP port, if enabled.
pub htsp_port: Option<u16>,
/// Panel port (for links such as the TV pairing page).
pub panel_port: u16,
}
#[derive(Default, Clone, serde::Serialize)]
@@ -55,6 +57,8 @@ pub struct AppState {
pub epg_wakeup: Notify,
pub xmltv_wakeup: Notify,
pub rec_wakeup: Notify,
/// Bumped whenever any change is committed to the database (see `db::watch_changes`).
pub db_changed: tokio::sync::watch::Sender<u64>,
pub shutting_down: AtomicBool,
pub stats: crate::stats::Stats,
/// The separate stream port is bound (it may wait for tvheadend to release it).
@@ -138,6 +142,7 @@ impl AppState {
epg_wakeup: Notify::new(),
xmltv_wakeup: Notify::new(),
rec_wakeup: Notify::new(),
db_changed: tokio::sync::watch::channel(0).0,
shutting_down: AtomicBool::new(false),
stats: crate::stats::Stats::default(),
stream_port_active: AtomicBool::new(false),