diff --git a/jobs-actix/src/lib.rs b/jobs-actix/src/lib.rs index 5b45d3b..9cc0ceb 100644 --- a/jobs-actix/src/lib.rs +++ b/jobs-actix/src/lib.rs @@ -464,8 +464,7 @@ impl QueueHandle { J: Job, { let job = new_scheduled_job(job, after)?; - let server = self.inner.clone(); - server.new_job(job).await?; + self.inner.new_job(job).await?; Ok(()) }