get_active

Function get_active 

Source
pub(crate) async fn get_active(
    pool: &PgPool,
    since: DateTime<Utc>,
) -> Result<Vec<ReflectorRow>, Error>
Expand description

Returns all reflectors that have been seen since the given timestamp.

Used by Tier 2 to select reflectors with recent activity for live monitoring. Results are ordered by last_seen DESC so the most recently active reflectors appear first.

ยงErrors

Returns sqlx::Error on query failure.