pub(crate) fn central_kv_sync_config_from_env() -> Result<Option<CentralKvSyncConfig>, LJMError>Expand description
Builds central-to-local KV mirroring settings from environment variables.
If neither CENTRAL_NATS_SERVERS nor CFG_NATS_SERVERS is set, the streamer
runs against local KV only and this returns Ok(None). Each CENTRAL_*
variable falls back to its CFG_* counterpart; see the module docs for the full
list and defaults.
ยงErrors
Returns an error if the server list contains an invalid URL or no usable URL.