Compare commits
4 Commits
9cbf95cbe8
...
bcc57ac804
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bcc57ac804 | ||
|
b8bf6b6f43
|
|||
| c4c0d82305 | |||
| a69387c577 |
26
CHANGELOG.md
26
CHANGELOG.md
@@ -6,6 +6,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [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
|
## [0.1.2] - 2025-07-04
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -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",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ members = ["crates/*"]
|
|||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.1.2"
|
version = "0.2.0"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user