fix: preserve consumer config on update, warn not abort; adr accuracy
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user