diff options
Diffstat (limited to 'src/jobs')
-rw-r--r-- | src/jobs/jobs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jobs/jobs.rs b/src/jobs/jobs.rs index 3e54624..536ff97 100644 --- a/src/jobs/jobs.rs +++ b/src/jobs/jobs.rs @@ -1,6 +1,6 @@ use sqlx::sqlite::SqlitePool; use tera::Tera; -use tokio::time::{delay_for, Duration}; +use tokio::time::{sleep, Duration}; use crate::db; use crate::jobs::weekly_report; @@ -23,6 +23,6 @@ pub async fn start(config: Config, pool: SqlitePool, templates: Tera) -> () { .await; } // Sleeping 8 hours - delay_for(Duration::from_secs(8 * 60 * 60)).await; + sleep(Duration::from_secs(8 * 60 * 60)).await; } } |