reenabled autoschedule
This commit is contained in:
parent
50d24c8ea8
commit
143f32ee5b
1 changed files with 6 additions and 5 deletions
|
@ -211,11 +211,12 @@ pub(crate) async fn command(
|
||||||
Some(command) => command,
|
Some(command) => command,
|
||||||
None => {
|
None => {
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
//let state = &state.clone();
|
let state = &state.clone();
|
||||||
//if Instant::elapsed(&state.clone().read().await.started).as_secs_f64() > STARTUP_ALLOWANCE {
|
if Instant::elapsed(&state.clone().read().await.started).as_secs_f64() > STARTUP_ALLOWANCE {
|
||||||
// let schedule = &mut state.write().await.tasks;
|
let schedule = &mut state.write().await.tasks;
|
||||||
// schedule.poll().await;
|
trace!("idle, polling");
|
||||||
//}
|
schedule.poll().await;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
turtle::TurtleCommand::Wait(IDLE_TIME)
|
turtle::TurtleCommand::Wait(IDLE_TIME)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue