Function stream_max_bytes_from_env
Source pub(crate) fn stream_max_bytes_from_env() -> Result<i64, LJMError>
Expand description
Reads the optional JetStream stream byte limit from STREAM_MAX_BYTES.
A missing or empty value returns -1, JetStream’s value for no limit.
§Returns
The byte limit, or -1 when unset.
§Errors
Returns an error if the value is not an integer or is not greater than zero.