N2: the keeper withdraws a refused drop's or recreate's ask on operator-channel

A refused request leaves nothing for the operator to answer, so its ask is cancelled in the same pass.

Builds: design 47 H2 §813 (6)
This commit is contained in:
2026-11-21 23:06:43 +01:00
parent c5a593eb05
commit 1ad170705e
4 changed files with 45 additions and 2 deletions
+3
View File
@@ -219,6 +219,9 @@ func runKeeper(ctx context.Context, getenv func(string) string, logOut io.Writer
return err
},
Warrant: WarrantFrom(conn.Ask), Finding: writer,
Cancel: func(id string) error {
return conn.Accept("operator-channel", "cancel", map[string]string{"id": id}, stdio.EmitOptions{MessageID: "cancel." + id})
},
Logf: logger.Printf,
Raise: percent(getenv, "MESH_NATS_FULL_RAISE", 75), Clear: percent(getenv, "MESH_NATS_FULL_CLEAR", 70),
// The settings snapshots-cap (20 GiB) and snapshot-keep-days (90) of the manifest, read from the file it declares