Record request end for tenant quota tracking.
(&self, tenant_id: TenantId)
| 283 | |
| 284 | /// Record request end for tenant quota tracking. |
| 285 | pub fn tenant_request_end(&self, tenant_id: TenantId) { |
| 286 | match self.tenants.lock() { |
| 287 | Ok(mut t) => t.request_end(tenant_id), |
| 288 | Err(poisoned) => poisoned.into_inner().request_end(tenant_id), |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | /// Check if a tenant can open a new connection. |
| 293 | pub fn check_tenant_connection(&self, tenant_id: TenantId) -> crate::Result<()> { |
no test coverage detected