feat: use source instead
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-08-02 09:29:13 +02:00
parent 989f073061
commit 85b6079b60
Signed by: kjuulh
GPG Key ID: D85D7535F18F35FA

View File

@ -8,7 +8,7 @@ use tokio_util::sync::CancellationToken;
#[derive(Debug, thiserror::Error)]
pub enum DriftError {
#[error("job failed with inner error")]
JobError(#[from] anyhow::Error),
JobError(#[source] anyhow::Error),
}
pub fn schedule<F, Fut>(interval: Duration, func: F) -> CancellationToken