mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-25 19:16:19 +00:00
spawnear en vez de correr inline
This commit is contained in:
parent
6b315f9af2
commit
dbb149aef3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue