From 849aac0550aaab89a63dd71b954006809bfd1728 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 7 Feb 2021 08:19:00 +0100 Subject: Upgrade dependencies --- src/jobs/jobs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } } -- cgit v1.2.3