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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user