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

Method ensure_current

crates/openshell-supervisor-network/src/opa.rs:96–105  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

94 }
95
96 pub fn ensure_current(&self) -> Result<()> {
97 if self.is_stale() {
98 return Err(miette::miette!(
99 "policy generation is stale [captured_generation:{} current_generation:{}]",
100 self.captured_generation(),
101 self.current_generation(),
102 ));
103 }
104 Ok(())
105 }
106}
107
108/// Per-tunnel L7 policy evaluator bound to the engine generation captured when

Callers 6

handle_forward_proxyFunction · 0.80
collect_chunked_bodyFunction · 0.80
relay_fixedFunction · 0.80
relay_chunkedFunction · 0.80

Calls 1

is_staleMethod · 0.80

Tested by

no test coverage detected