Skip to main content

env_atlas

Function env_atlas 

Source
fn env_atlas() -> Option<String>
Expand description

Read the ROBONIX_ATLAS env var as an atlas-endpoint alias.

rbnx, the Python API, and liaison all configure the atlas endpoint via ROBONIX_ATLAS, while executor/pilot historically only honored ROBONIX_ATLAS_ENDPOINT (the clap env). Accepting ROBONIX_ATLAS here as well means a single env var configures every component. Without it, setting only ROBONIX_ATLAS left executor silently falling back to DEFAULT_ATLAS_ENDPOINT (127.0.0.1:50051) — it would then dial the wrong atlas and log 127.0.0.1 even after the operator “changed” the endpoint. Empty values are ignored so an exported-but-blank var doesn’t shadow later sources.