From a054bac9d231624888b4e0119ae1f275e12101aa Mon Sep 17 00:00:00 2001 From: Michael van Niekerk Date: Wed, 25 Jan 2023 08:44:41 +0200 Subject: [PATCH] Make deleter async --- Cargo.toml | 2 +- src/job_scheduler.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8b68bd1..e5c2d16 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tokio-cron-scheduler" -version = "0.9.2" +version = "0.9.3" authors = ["Michael van Niekerk "] edition = "2018" diff --git a/src/job_scheduler.rs b/src/job_scheduler.rs index 6e56203..6f423f8 100644 --- a/src/job_scheduler.rs +++ b/src/job_scheduler.rs @@ -286,7 +286,7 @@ impl JobsSchedulerLocked { } let context = self.context(); - JobDeleter::remove(&context, to_be_removed) + JobDeleter::remove(&context, to_be_removed).await } /// The `start` spawns a Tokio task where it loops. Every 500ms it