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

Function clear_active_gateway

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

Remove the active gateway file (used when destroying the active gateway).

()

Source from the content-addressed store, hash-verified

389
390/// Remove the active gateway file (used when destroying the active gateway).
391pub fn clear_active_gateway() -> Result<()> {
392 let path = user_active_gateway_path()?;
393 if path.exists() {
394 std::fs::remove_file(&path)
395 .into_diagnostic()
396 .wrap_err_with(|| format!("failed to remove {}", path.display()))?;
397 }
398 Ok(())
399}
400
401/// Remove gateway metadata file.
402pub fn remove_gateway_metadata(name: &str) -> Result<()> {

Callers 1

Calls 2

user_active_gateway_pathFunction · 0.85
existsMethod · 0.80

Tested by

no test coverage detected