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

Function handle_create_sandbox

crates/openshell-server/src/grpc/sandbox.rs:61–73  ·  view source on GitHub ↗
(
    state: &Arc<ServerState>,
    request: Request<CreateSandboxRequest>,
)

Source from the content-addressed store, hash-verified

59// ---------------------------------------------------------------------------
60
61pub(super) async fn handle_create_sandbox(
62 state: &Arc<ServerState>,
63 request: Request<CreateSandboxRequest>,
64) -> Result<Response<SandboxResponse>, Status> {
65 let create_request = request.get_ref().clone();
66 let result = handle_create_sandbox_inner(state, request).await;
67 emit_sandbox_create_telemetry(
68 state,
69 &create_request,
70 TelemetryOutcome::from_success(result.is_ok()),
71 );
72 result
73}
74
75fn emit_sandbox_create_telemetry(
76 state: &Arc<ServerState>,

Calls 2

Tested by

no test coverage detected