Skip to main content

ancestor_cap_from_env

Function ancestor_cap_from_env 

Source
pub fn ancestor_cap_from_env(
    get: impl Fn(&str) -> Option<String>,
) -> Result<usize, String>
Expand description

Resolve the backing store’s ancestor cap from GONZALO_ANCESTOR_CAP (gonzalo#203, spec §3.9), via the environment accessor get.

Unset or empty → gonzalo_core::DEFAULT_ANCESTOR_CAP. Zero or a non-number is an error, so the daemon fails fast with a clear message instead of silently running at the default — the same policy as StoreConfig::from_env.