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

Method unregister

nodedb/src/engine/bitemporal/registry.rs:116–119  ·  view source on GitHub ↗

Remove a collection's policy. Idempotent.

(&self, tenant_id: TenantId, collection: &str)

Source from the content-addressed store, hash-verified

114
115 /// Remove a collection's policy. Idempotent.
116 pub fn unregister(&self, tenant_id: TenantId, collection: &str) {
117 let mut w = self.inner.write().unwrap_or_else(|p| p.into_inner());
118 w.remove(&(tenant_id, collection.to_string()));
119 }
120
121 /// Snapshot all registered entries. Used by the enforcement loop to
122 /// iterate without holding the lock across dispatches.

Callers 1

unregister_is_idempotentFunction · 0.45

Calls 3

to_stringMethod · 0.80
writeMethod · 0.45
removeMethod · 0.45

Tested by 1

unregister_is_idempotentFunction · 0.36