Skip to main content

count_expired_nodes

Function count_expired_nodes 

Source
pub fn count_expired_nodes(conn: &Connection, now: &str) -> Result<u64>
Expand description

Count nodes whose valid_until is set and earlier than now (ISO 8601).

String comparison is correct for same-format (zero-padded, UTC) ISO 8601 timestamps — the same convention the rest of the graph uses for created/updated/accessed_at.