mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-26 11:36:20 +00:00
el primer tick es instantaneo
This commit is contained in:
parent
028dc30606
commit
f256b3bc73
1 changed files with 1 additions and 1 deletions
|
@ -376,8 +376,8 @@ async fn cron_cli() -> anyhow::Result<()> {
|
||||||
let mut interval = time::interval(std::time::Duration::from_secs(60 * 60 * 24));
|
let mut interval = time::interval(std::time::Duration::from_secs(60 * 60 * 24));
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
tokio::spawn(auto_cli());
|
|
||||||
interval.tick().await;
|
interval.tick().await;
|
||||||
|
tokio::spawn(auto_cli());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue