Remove a collection's policy. Idempotent.
(&self, tenant_id: TenantId, collection: &str)
| 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. |