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

Method drop

crates/openshell-server/src/grpc/sandbox.rs:986–994  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

984
985impl Drop for ForwardConnectionGuard {
986 fn drop(&mut self) {
987 if let Some(token) = self.token.as_deref() {
988 decrement_ssh_connection_count(&self.state.ssh_connections_by_token, token);
989 decrement_ssh_connection_count(
990 &self.state.ssh_connections_by_sandbox,
991 &self.sandbox_id,
992 );
993 }
994 }
995}
996
997async fn acquire_forward_connection_guard(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected