JMAP Registry API implementation - part 7

This commit is contained in:
mdecimus
2026-03-02 19:26:59 +01:00
parent 9ccc2ed6f0
commit 08f1a8013a
33 changed files with 1843 additions and 927 deletions

View File

@@ -238,8 +238,8 @@ impl TelemetryApi for Server {
if metric_types.contains(&metric_type) {
let value = match metric_type {
MetricType::QueueCount => self.total_queued_messages().await?,
MetricType::UserCount => self.total_accounts().await?,
MetricType::DomainCount => self.total_domains().await?,
MetricType::UserCount => self.total_accounts().await? as u64,
MetricType::DomainCount => self.total_domains().await? as u64,
_ => unreachable!(),
};
Collector::update_gauge(metric_type, value);