spawnear en vez de correr inline

This commit is contained in:
Cat /dev/Nulo 2024-01-12 16:28:44 -03:00
parent 6b315f9af2
commit dbb149aef3

View file

@ -365,7 +365,7 @@ 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 {
auto_cli().await.unwrap(); tokio::spawn(auto_cli());
interval.tick().await; interval.tick().await;
} }
} }