el primer tick es instantaneo

This commit is contained in:
Cat /dev/Nulo 2024-01-12 17:05:59 -03:00
parent 028dc30606
commit f256b3bc73

View file

@ -376,8 +376,8 @@ async fn cron_cli() -> anyhow::Result<()> {
let mut interval = time::interval(std::time::Duration::from_secs(60 * 60 * 24));
loop {
tokio::spawn(auto_cli());
interval.tick().await;
tokio::spawn(auto_cli());
}
}