Function sentry::db::validator_message::latest_heartbeats
source · pub async fn latest_heartbeats(
pool: &DbPool,
channel_id: &ChannelId,
validator_id: &ValidatorId
) -> Result<Vec<MessageResponse<Heartbeat>>, PoolError>Expand description
Returns the latest 2 [Heartbeat] messages for this [Channel] received from the [ValidatorId].
Ordered by: received DESC