count_total

Function count_total 

Source
pub(crate) async fn count_total(pool: &PgPool) -> Result<i64, Error>
Expand description

Returns the total number of rows in the reflectors table.

Used by the HTTP API /metrics endpoint. This counts every known reflector regardless of last_seen, giving a registry-size snapshot.

ยงErrors

Returns sqlx::Error on query failure.