1 2 3 4 5 6 7 8
pub fn generate_timestamp_index( config_id: &str, timestamp: chrono::DateTime<chrono::Utc>, ) -> String { let max_timestamp = i64::MAX; let inverted_timestamp = max_timestamp - timestamp.timestamp(); format!("{}:{}", config_id, inverted_timestamp) }