feat: use source instead
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
989f073061
commit
85b6079b60
@ -8,7 +8,7 @@ use tokio_util::sync::CancellationToken;
|
|||||||
#[derive(Debug, thiserror::Error)]
|
#[derive(Debug, thiserror::Error)]
|
||||||
pub enum DriftError {
|
pub enum DriftError {
|
||||||
#[error("job failed with inner error")]
|
#[error("job failed with inner error")]
|
||||||
JobError(#[from] anyhow::Error),
|
JobError(#[source] anyhow::Error),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn schedule<F, Fut>(interval: Duration, func: F) -> CancellationToken
|
pub fn schedule<F, Fut>(interval: Duration, func: F) -> CancellationToken
|
||||||
|
Loading…
Reference in New Issue
Block a user