Skip to content

Commit bb75a3a

Browse files
fix(*): support deleting all versions of manifest
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
1 parent cef49fe commit bb75a3a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,6 @@ serial_test = "1"
7070
name = "wadm"
7171
path = "bin/main.rs"
7272
required-features = ["cli"]
73+
74+
[patch.crates-io]
75+
async-nats = { git = "https://github.com/brooksmtownsend/nats.rs", branch = "fix/jetstream-domain-purge", version = "0.30" }

src/server/storage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl ModelStorage {
7474
let key = model_key(account_id, lattice_id, model.name());
7575
trace!(%key, "Storing manifest at key");
7676
let data = serde_json::to_vec(&model).map_err(anyhow::Error::from)?;
77-
if let Some(revision) = current_revision {
77+
if let Some(revision) = current_revision.filter(|r| r > &0) {
7878
self.store
7979
.update(&key, data.into(), revision)
8080
.await

0 commit comments

Comments
 (0)