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

Function gateway_reachable

crates/openshell-cli/src/run.rs:1449–1457  ·  view source on GitHub ↗
(server: &str, tls: &TlsOptions)

Source from the content-addressed store, hash-verified

1447}
1448
1449async fn gateway_reachable(server: &str, tls: &TlsOptions) -> bool {
1450 if let Ok(mut client) = grpc_client(server, tls).await
1451 && client.health(HealthRequest {}).await.is_ok()
1452 {
1453 return true;
1454 }
1455
1456 matches!(http_health_check(server, tls).await, Ok(Some(status)) if status.is_success())
1457}
1458
1459fn is_browser_suppressed() -> bool {
1460 std::env::var("OPENSHELL_NO_BROWSER").is_ok_and(|v| v == "1" || v.eq_ignore_ascii_case("true"))

Callers 1

gateway_addFunction · 0.85

Calls 2

grpc_clientFunction · 0.85
healthMethod · 0.45

Tested by

no test coverage detected