Skip to main content

classify

Function classify 

Source
pub(crate) fn classify<F>(
    column: Column,
    key: &[u8],
    value: &[u8],
    timeline_room: F,
) -> Option<Finding>
where F: FnOnce() -> Option<OwnedRoomId>,
Expand description

Classifies one stored event as scan does.

A timeline event’s room comes from timeline_room, asked only once the event proves to lack one, while an outlier’s derives from its own id. A repair reads the row a finding names again and passes it back through here, so detection and repair share one predicate.