Fix bugs and add controller action for controller ws
This commit is contained in:
parent
8b1affd8c7
commit
6f8d63e7be
11 changed files with 177 additions and 56 deletions
emgauwa-controller/src
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue