Skip to main content

load_probe_inputs

Function load_probe_inputs 

Source
pub fn load_probe_inputs() -> Result<(Vec<LaneId>, PartitionConfig), String>
Expand description

Load the minimal config subset the probe needs, directly from env.

Unlike crate::config::ServerConfig::from_env, this skips the HMAC secret, CORS, listener address, and engine intervals — a probe doesn’t bind HTTP, start scanners, or touch signalling, so demanding those variables just creates operator-facing friction. Reads:

  • FF_LANES (default "default")
  • FF_FLOW_PARTITIONS (default 256)
  • FF_BUDGET_PARTITIONS (default 32) — present for struct symmetry, unused by the collisions probe
  • FF_QUOTA_PARTITIONS (default 32) — same

Returns Err(String) with an operator-actionable message on invalid values (empty FF_LANES, non-positive partition count, etc.).