fix: preserve consumer config on update, warn not abort; adr accuracy

This commit is contained in:
2026-10-26 01:43:22 +01:00
parent 0908b7046a
commit 56f3d1ac1b
3 changed files with 41 additions and 18 deletions

View File

@@ -75,12 +75,16 @@ fn consumer_max_deliver_drift_is_updated() {
filter_subject: "a.>".into(),
max_deliver: -1,
ack_wait: ACK_WAIT,
max_ack_pending: 77,
description: Some("operator".into()),
..Default::default()
};
let updated = consumer_config_update(&existing, 5).unwrap();
assert_eq!(updated.max_deliver, 5);
assert_eq!(updated.durable_name.as_deref(), Some("c"));
assert_eq!(updated.filter_subject, "a.>");
assert_eq!(updated.max_ack_pending, 77);
assert_eq!(updated.description.as_deref(), Some("operator"));
let same = jetstream::consumer::Config {
max_deliver: 5,
..existing