feat: execute post-baseline jetstream parity plan
This commit is contained in:
@@ -11,6 +11,12 @@ public static class JetStreamConfigValidator
|
||||
|
||||
if (config.Retention == RetentionPolicy.WorkQueue && config.MaxConsumers == 0)
|
||||
return ValidationResult.Invalid("workqueue retention requires max consumers > 0");
|
||||
if (config.MaxMsgSize < 0)
|
||||
return ValidationResult.Invalid("max_msg_size must be >= 0");
|
||||
if (config.MaxMsgsPer < 0)
|
||||
return ValidationResult.Invalid("max_msgs_per must be >= 0");
|
||||
if (config.MaxAgeMs < 0)
|
||||
return ValidationResult.Invalid("max_age_ms must be >= 0");
|
||||
|
||||
return ValidationResult.Valid();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user