Fix bugs and add controller action for controller ws

This commit is contained in:
Tobias Reisinger 2023-12-05 16:11:40 +01:00
parent 8b1affd8c7
commit 6f8d63e7be
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
11 changed files with 177 additions and 56 deletions
emgauwa-controller/src

View file

@ -8,7 +8,7 @@ use crate::settings::Settings;
#[allow(unused_variables)]
pub async fn run_relay_loop(settings: Settings) {
let default_duration = Duration::from_millis(1000);
let default_duration = Duration::from_millis(10000);
loop {
let next_timestamp = Instant::now() + default_duration;
time::sleep_until(next_timestamp).await;