Add ControllerWsAction
This commit is contained in:
parent
cb47dcda5c
commit
3b596de06f
10 changed files with 134 additions and 34 deletions
emgauwa-controller/src
|
@ -7,7 +7,6 @@ use tokio::time;
|
|||
pub async fn run_relay_loop(settings: Settings) {
|
||||
let default_duration = Duration::from_millis(1000);
|
||||
loop {
|
||||
// naivetime timestamp for now
|
||||
let next_timestamp = Local::now().naive_local().time() + default_duration;
|
||||
time::sleep(default_duration).await;
|
||||
println!("Relay loop: {}", next_timestamp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue