MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / load_user_active_gateway

Function load_user_active_gateway

crates/openshell-bootstrap/src/metadata.rs:261–266  ·  view source on GitHub ↗

Load the per-user active gateway name from persistent storage. Returns `None` if no user-scoped active gateway has been set.

()

Source from the content-addressed store, hash-verified

259///
260/// Returns `None` if no user-scoped active gateway has been set.
261pub fn load_user_active_gateway() -> Option<String> {
262 user_active_gateway_path()
263 .ok()
264 .as_deref()
265 .and_then(read_gateway_name)
266}
267
268/// Load the active gateway name from persistent storage.
269///

Callers 2

load_active_gatewayFunction · 0.85
gateway_addFunction · 0.85

Calls 1

user_active_gateway_pathFunction · 0.85

Tested by

no test coverage detected