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 18 additions and 3 deletions

View File

@@ -6,9 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.1.3] - 2025-09-24 ## [0.2.0] - 2025-09-25
### Added ### Added
- print as well
- add publish - add publish
- add features for nats and postgres - add features for nats and postgres
- add postgres - add postgres
@@ -22,6 +23,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Configure Renovate (#4) - Configure Renovate (#4)
Add renovate.json 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 ## [0.1.2] - 2025-07-04
### Added ### Added

2
Cargo.lock generated
View File

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

View File

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

View File

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

View File

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