Find active channels and deliver values

This commit is contained in:
Dominik Werder
2022-06-03 16:57:59 +02:00
parent 775650c2d8
commit 3cd1b7a640
49 changed files with 1002 additions and 270 deletions

View File

@@ -198,6 +198,7 @@ mod test {
let channel = Channel {
backend: "sls-archive".into(),
name: "X05DA-FE-WI1:TC1".into(),
series: None,
};
use chrono::{DateTime, Utc};
let dtbeg: DateTime<Utc> = "2021-10-01T00:00:00Z".parse()?;
@@ -211,6 +212,7 @@ mod test {
};
let dbconf = Database {
host: "localhost".into(),
port: 5432,
name: "testingdaq".into(),
user: "testingdaq".into(),
pass: "testingdaq".into(),

View File

@@ -485,9 +485,11 @@ mod test {
backend: "sls-archive".into(),
//name: "X05DA-FE-WI1:TC1".into(),
name: "ARIDI-PCT:CURRENT".into(),
series: None,
};
let dbconf = Database {
host: "localhost".into(),
port: 5432,
name: "testingdaq".into(),
user: "testingdaq".into(),
pass: "testingdaq".into(),

View File

@@ -227,6 +227,7 @@ impl Stream for ConfigStream {
let channel = Channel {
name: item,
backend: "".into(),
series: None,
};
let now = SystemTime::now()
.duration_since(std::time::UNIX_EPOCH)