aboutsummaryrefslogtreecommitdiff
path: root/src/jobs
diff options
context:
space:
mode:
authorJoris2021-02-07 08:19:00 +0100
committerJoris2021-02-07 08:19:00 +0100
commit849aac0550aaab89a63dd71b954006809bfd1728 (patch)
tree14a706b6a9a2e255c7e7981414ef3493bc9092a5 /src/jobs
parenta8e943c9a7abbde95c900d89fc5f2ed825e9afa3 (diff)
Upgrade dependencies
Diffstat (limited to 'src/jobs')
-rw-r--r--src/jobs/jobs.rs4
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;
}
}