Compare commits

4 Commits

Author SHA1 Message Date
cuddle-please
bcc57ac804 chore(release): 0.2.0
All checks were successful
continuous-integration/drone/push Build is passing
2025-09-25 08:23:18 +00:00
b8bf6b6f43 feat: print as well
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: kjuulh <contact@kjuulh.io>
2025-09-25 10:21:39 +02:00
c4c0d82305 feat: add publish
Some checks failed
continuous-integration/drone/push Build is failing
2025-09-24 21:43:34 +02:00
a69387c577 chore(release): v0.1.3 (#3)
Some checks failed
continuous-integration/drone/push Build is failing
chore(release): 0.1.3

Co-authored-by: cuddle-please <bot@cuddle.sh>
Reviewed-on: #3
2025-09-24 21:43:06 +02:00
5 changed files with 33 additions and 2 deletions

View File

@@ -6,6 +6,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.2.0] - 2025-09-25
### Added
- print as well
- add publish
- add features for nats and postgres
- add postgres
- extract backend
- do publish
- allow readme
### Other
- *(release)* v0.1.3 (#3)
chore(release): 0.1.3
- Configure Renovate (#4)
Add renovate.json
## [0.1.3] - 2025-09-24
### Added
- add features for nats and postgres
- add postgres
- extract backend
- do publish
- allow readme
## [0.1.2] - 2025-07-04
### Added

2
Cargo.lock generated
View File

@@ -918,7 +918,7 @@ dependencies = [
[[package]]
name = "noleader"
version = "0.1.2"
version = "0.1.3"
dependencies = [
"anyhow",
"async-nats",

View File

@@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"
[workspace.package]
version = "0.1.2"
version = "0.2.0"
license = "MIT"
[workspace.dependencies]

View File

@@ -133,6 +133,8 @@ impl Leader {
F: Fn(CancellationToken) -> Fut,
Fut: Future<Output = anyhow::Result<()>> + Send + 'static,
{
let cancellation_token = cancellation_token.child_token();
loop {
if cancellation_token.is_cancelled() {
return Ok(());
@@ -170,6 +172,7 @@ impl Leader {
}
});
tracing::info!("starting leader actions");
let res = f(child_token).await;
guard.abort();

View File

@@ -5,6 +5,8 @@ base: "git@git.front.kjuulh.io:kjuulh/cuddle-rust-lib-plan.git"
vars:
service: "noleader"
registry: kasperhermansen
rust:
publish: {}
please:
project: