state-res: Remove todo comment

EventId has the same ordering as str.
This commit is contained in:
Jonas Platte 2021-09-05 00:51:48 +02:00
parent 91e6a1c65c
commit 660cd97962
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -527,11 +527,7 @@ where
if let Ok(depth) = get_mainline_depth(Some(event), &mainline_map, &fetch_event) {
order_map.insert(
ev_id,
(
depth,
fetch_event(ev_id).map(|ev| ev.origin_server_ts()),
ev_id, // TODO should this be a &str to sort lexically??
),
(depth, fetch_event(ev_id).map(|ev| ev.origin_server_ts()), ev_id),
);
}
}