MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / evict

Method evict

nodedb/src/control/planner/wasm/pool.rs:98–102  ·  view source on GitHub ↗

Remove all pooled instances for a tenant+function (on DROP FUNCTION).

(&self, tenant_id: u64, func_name: &str)

Source from the content-addressed store, hash-verified

96
97 /// Remove all pooled instances for a tenant+function (on DROP FUNCTION).
98 pub fn evict(&self, tenant_id: u64, func_name: &str) {
99 let key = (tenant_id, func_name.to_string());
100 let mut pools = self.pools.lock().unwrap_or_else(|p| p.into_inner());
101 pools.remove(&key);
102 }
103
104 fn create_instance(
105 &self,

Callers

nothing calls this directly

Calls 3

to_stringMethod · 0.80
lockMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected