Compare commits

..

No commits in common. "main" and "v0.1.0" have entirely different histories.
main ... v0.1.0

3 changed files with 3 additions and 13 deletions

View File

@ -6,13 +6,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.2.0] - 2024-08-02
### Added
- use actual delimination
- use source instead
- add inner error
## [0.1.0] - 2024-08-02 ## [0.1.0] - 2024-08-02
### Added ### Added

View File

@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2" resolver = "2"
[workspace.package] [workspace.package]
version = "0.2.0" version = "0.1.0"
[workspace.dependencies] [workspace.dependencies]
drift = { path = "crates/drift" } drift = { path = "crates/drift" }

View File

@ -5,11 +5,8 @@ use std::future::Future;
use tokio::time; use tokio::time;
use tokio_util::sync::CancellationToken; use tokio_util::sync::CancellationToken;
#[derive(Debug, thiserror::Error)] #[derive(Debug, Clone, thiserror::Error)]
pub enum DriftError { pub enum DriftError {}
#[error("job failed with inner error: {0}")]
JobError(#[source] anyhow::Error),
}
pub fn schedule<F, Fut>(interval: Duration, func: F) -> CancellationToken pub fn schedule<F, Fut>(interval: Duration, func: F) -> CancellationToken
where where